Device::Gyroscope::L3GD20 - I2C interface to Gyroscope on the L3GD20 using Device::SMBus
version 0.010
Contains the I2CDevice Address for the bus on which your gyroscope is connected. It would look like 0x6b. Default is 0x6b.
Unless you are modifying gyroscope setup you must not change this. This contains the Gyroscope gain value which helps in converting the raw measurements from gyroscope register in to degrees per second.
This is the raw value for the X axis when the gyro is stationary. This is a part of gyro calibration to get more accurate values for rotation.
This is the raw value for the Y axis when the gyro is stationary. This is a part of gyro calibration to get more accurate values for rotation.
This is the raw value for the Z axis when the gyro is stationary. This is a part of gyro calibration to get more accurate values for rotation.
$self->enable()
Initializes the device, Call this before you start using the device. This function sets up the appropriate default registers. The Device will not work properly unless you call this function
$self->getRawReading()
Return raw readings from registers. Note that if xZero,yZero or zZero are set, this function returns the values adjusted from the values at default non rotating state of the gyroscope. Its recommended that you set these values to achieve accurate results from the gyroscope.
Return gyroscope readings in degrees per second
Return gyroscope readings in radians per second
Placeholder for documentation on calibration
Shantanu Bhadoria <shantanu at cpan dott org>
This software is copyright (c) 2016 by Shantanu Bhadoria.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Device::L3GD20, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::L3GD20
CPAN shell
perl -MCPAN -e shell install Device::L3GD20
For more information on module installation, please visit the detailed CPAN module installation guide.