pyupm_itg3200 module¶
- 
class pyupm_itg3200.Itg3200(bus)[source]¶
- Bases: - object- API for the ITG-3200 3-Axis Digital Gyroscope. - ID: itg3200 - Name: 3-axis Digital Gyroscope - Other Names: Grove 3-Axis Digital Gyroscope - Category: compass - Manufacturer: seeed - Connection: i2c - Link:http://wiki.seeed.cc/Grove-3-Axis_Digital_Gyro/ 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. - C++ includes: itg3200.hpp - 
calibrate()[source]¶
- void calibrate() - 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. 
 - 
getRawTemp()[source]¶
- int16_t getRawTemp() - Returns an int that contains the raw register value for the temperature - int Raw temperature 
 - 
getRawValues()[source]¶
- int16_t * getRawValues() - Returns a pointer to an int[3] that contains raw register values for X, Y, and Z - int* to an int[3] 
 - 
getRotation()[source]¶
- float * getRotation() - Returns a pointer to a float[3] that contains computed rotational speeds (angular velocities) - float* to a float[3] 
 
-