for interfacing the sparkfun boards

Dependencies:   ADXL345_I2C HMC5883L IMUfilter ITG3200_HelloWorld mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ITG3200HL.h Source File

ITG3200HL.h

00001 #pragma once
00002 #include "ITG3200.h"
00003 
00004 #define GYRO_GAIN 0.00124 //(rad/sec) / LSB
00005 
00006 class ITG3200HL
00007 {
00008     private:
00009     ITG3200* gyro;
00010     int calibrationsamples;
00011     int readsamples;
00012     float samplerate;
00013     double xBias;
00014     double yBias;
00015     double zBias;
00016     double* output;
00017     
00018     public:
00019     void init(int calibsampls, int readsampls, float samplrate);
00020     void calibrate();
00021     double* sample();
00022     ~ITG3200HL();
00023 };