An fully working IMU-Filter and Sensor drivers for the 10DOF-Board over I2C. All in one simple class. Include, calibrate sensors, call read, get angles. (3D Visualisation code for Python also included) Sensors: L3G4200D, ADXL345, HMC5883, BMP085
Diff: IMU/Sensors/Gyro/L3G4200D.h
- Revision:
- 4:f62337b907e5
- Parent:
- 0:3e7450f1a938
--- a/IMU/Sensors/Gyro/L3G4200D.h Tue Aug 27 22:18:25 2013 +0000 +++ b/IMU/Sensors/Gyro/L3G4200D.h Thu Aug 29 13:52:30 2013 +0000 @@ -40,8 +40,7 @@ #define L3G4200D_INT1_THS_ZL 0x37 #define L3G4200D_INT1_DURATION 0x38 -class L3G4200D : public I2C_Sensor -{ +class L3G4200D : public I2C_Sensor { public: L3G4200D(PinName sda, PinName scl); // constructor, uses I2C_Sensor class virtual void read(); // read all axis from register to array data