for interfacing the sparkfun boards
Dependencies: ADXL345_I2C HMC5883L IMUfilter ITG3200_HelloWorld mbed
Diff: ITG3200HL.h
- Revision:
- 0:441caaf895d8
diff -r 000000000000 -r 441caaf895d8 ITG3200HL.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ITG3200HL.h Tue Apr 29 00:04:48 2014 +0000 @@ -0,0 +1,23 @@ +#pragma once +#include "ITG3200.h" + +#define GYRO_GAIN 0.00124 //(rad/sec) / LSB + +class ITG3200HL +{ + private: + ITG3200* gyro; + int calibrationsamples; + int readsamples; + float samplerate; + double xBias; + double yBias; + double zBias; + double* output; + + public: + void init(int calibsampls, int readsampls, float samplrate); + void calibrate(); + double* sample(); + ~ITG3200HL(); +}; \ No newline at end of file