for interfacing the sparkfun boards

Dependencies:   ADXL345_I2C HMC5883L IMUfilter ITG3200_HelloWorld mbed

Committer:
sandwich
Date:
Tue Apr 29 00:04:48 2014 +0000
Revision:
0:441caaf895d8
imufilter works. 6dof

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sandwich 0:441caaf895d8 1 #pragma once
sandwich 0:441caaf895d8 2 #include "ITG3200.h"
sandwich 0:441caaf895d8 3
sandwich 0:441caaf895d8 4 #define GYRO_GAIN 0.00124 //(rad/sec) / LSB
sandwich 0:441caaf895d8 5
sandwich 0:441caaf895d8 6 class ITG3200HL
sandwich 0:441caaf895d8 7 {
sandwich 0:441caaf895d8 8 private:
sandwich 0:441caaf895d8 9 ITG3200* gyro;
sandwich 0:441caaf895d8 10 int calibrationsamples;
sandwich 0:441caaf895d8 11 int readsamples;
sandwich 0:441caaf895d8 12 float samplerate;
sandwich 0:441caaf895d8 13 double xBias;
sandwich 0:441caaf895d8 14 double yBias;
sandwich 0:441caaf895d8 15 double zBias;
sandwich 0:441caaf895d8 16 double* output;
sandwich 0:441caaf895d8 17
sandwich 0:441caaf895d8 18 public:
sandwich 0:441caaf895d8 19 void init(int calibsampls, int readsampls, float samplrate);
sandwich 0:441caaf895d8 20 void calibrate();
sandwich 0:441caaf895d8 21 double* sample();
sandwich 0:441caaf895d8 22 ~ITG3200HL();
sandwich 0:441caaf895d8 23 };