upm
0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
|
API for the ITG-3200 3-Axis Digital Gyroscope. More...
InvenSense* ITG-3200 is a 3-axis digital gyroscope. (https://www.sparkfun.com/datasheets/Sensors/Gyro/PS-ITG-3200-00-01.4.pdf) This sensor has been tested and can run at either 3.3V or 5V on Intel(R) Galileo.
However, it is incompatible with and not detected on the I2C bus by Intel(R) Edison using the Arduino* breakout board.
Public Member Functions | |
Itg3200 (int bus) | |
void | calibrate () |
float | getTemperature () |
float * | getRotation () |
int16_t * | getRawValues () |
int16_t | getRawTemp () |
mraa::Result | update () |
Itg3200 | ( | int | bus | ) |
Creates an Itg3200 object
bus | Number of the used I2C bus |
void calibrate | ( | void | ) |
Calibrates the sensor to 0 on all axes. The sensor needs to be resting for accurate calibration. It takes about 3 seconds and is also called by the constructor on object creation.
float getTemperature | ( | void | ) |
Returns the temperature reading, in Celsius, from the integrated temperature sensor
float * getRotation | ( | void | ) |
Returns a pointer to a float[3] that contains computed rotational speeds (angular velocities)
int16_t * getRawValues | ( | ) |
Returns a pointer to an int[3] that contains raw register values for X, Y, and Z
int16_t getRawTemp | ( | ) |
Returns an int that contains the raw register value for the temperature
mraa::Result update | ( | void | ) |
Updates the rotational values and temperature by reading from the I2C bus