25 #ifndef ITG3200GYROSCOPE_H_
26 #define ITG3200GYROSCOPE_H_
28 #include "../bus/BusDevice.h"
30 #define BUFFER_SIZE 0x3E
31 #define SENSITIVITY 14.375 //LSBs per degree
42 enum ITG3200_LPFILTER {
55 unsigned char *registers;
float getGyroscopeYaw()
Definition: ITG3200.h:66
float getGyroscopePitch()
Definition: ITG3200.h:65
ITG3200(BusDevice *device)
Definition: ITG3200.cpp:59
virtual ~ITG3200()
Definition: ITG3200.cpp:129
float getOffsetRollOffset()
Definition: ITG3200.h:68
int zeroCalibrate(int numberSamples, int sampleDelayMs)
Definition: ITG3200.cpp:101
A class to interface with the ITG3200 gyroscope (untested)
Definition: ITG3200.h:39
float getGyroscopeRoll()
Definition: ITG3200.h:64
int convertGyroscopeValue(int msb_reg_addr, int lsb_reg_addr)
Definition: ITG3200.cpp:83
int getTemperature()
Definition: ITG3200.h:72
int setDigitalLowPassFilter(ITG3200_LPFILTER filterValue)
Definition: ITG3200.cpp:90
int setSampleRateDivider(char divider)
Definition: ITG3200.cpp:117
Definition: BusDevice.cpp:27
#define SENSITIVITY
Definition: ITG3200.h:31
This class is the parent of I2C and SPI devices, so that devices that use both SPI and I2C interfaces...
Definition: BusDevice.h:37
float getOffsetYawOffset()
Definition: ITG3200.h:70
float getOffsetPitchOffset()
Definition: ITG3200.h:69
int readFullSensorState()
Definition: ITG3200.cpp:70