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

Dependencies:   mbed

Revision:
4:f62337b907e5
Parent:
0:3e7450f1a938
--- a/IMU/Sensors/Comp/HMC5883.cpp	Tue Aug 27 22:18:25 2013 +0000
+++ b/IMU/Sensors/Comp/HMC5883.cpp	Thu Aug 29 13:52:30 2013 +0000
@@ -2,6 +2,7 @@
 
 HMC5883::HMC5883(PinName sda, PinName scl) : I2C_Sensor(sda, scl, HMC5883_I2C_ADDRESS)
 {   
+    #warning these three offsets are calibration values to get |MAX| = |MIN|
     offset[0] = -155; // offset calculated by hand... (min + ((max - min) / 2)
     offset[1] = -142; // TODO: make this automatic with saving to filesystem
     offset[2] = -33.5;