NOT FINISHED YET!!! My first try to get a self built fully working Quadrocopter based on an mbed, a self built frame and some other more or less cheap parts.
Diff: Sensors/Gyro/L3G4200D.h
- Revision:
- 40:2ca410923691
- Parent:
- 34:3aa1cbcde59d
--- a/Sensors/Gyro/L3G4200D.h Wed Aug 28 00:30:38 2013 +0000 +++ b/Sensors/Gyro/L3G4200D.h Fri Feb 14 14:17:32 2014 +0000 @@ -44,13 +44,15 @@ { public: L3G4200D(PinName sda, PinName scl); // constructor, uses I2C_Sensor class - virtual void read(); // read all axis from register to array data + float data[3]; // where the measured data is saved + void read(); // read all axis from register to array data float offset[3]; // offset that's subtracted from every measurement void calibrate(int times, float separation_time); // calibration from 'times' measurements with 'separation_time' time between (get an offset while not moving) int readTemp(); // read temperature from sensor private: - virtual void readraw(); + int raw[3]; + void readraw(); }; #endif \ No newline at end of file