Added external magnetometer functionality

Dependencies:   HMC58X31 MODI2C MPU6050 MS561101BA

Dependents:   Quadcopter_mk2

Fork of FreeIMU by Yifei Teng

Revision:
17:48a0eae27bf1
Parent:
13:21b275eeeda2
Child:
18:0065ffbcd39b
--- a/calibration.h	Wed Sep 24 01:11:50 2014 +0000
+++ b/calibration.h	Wed Mar 04 18:50:06 2015 +0000
@@ -7,16 +7,16 @@
 
 #define CALIBRATION_H
 
-const int acc_off_x = 178;
-const int acc_off_y = -54;
-const int acc_off_z = -1552;
-const float acc_scale_x = 16330.269447;
-const float acc_scale_y = 16448.123415;
-const float acc_scale_z = 16649.766786;
+const int acc_off_x = 117;
+const int acc_off_y = 57;
+const int acc_off_z = -785;
+const float acc_scale_x = 16371.245813;
+const float acc_scale_y = 16402.576538;
+const float acc_scale_z = 16638.329459;
 
-const int magn_off_x = -273;
-const int magn_off_y = -199;
-const int magn_off_z = -367;
-const float magn_scale_x = 659.619061;
-const float magn_scale_y = 732.911552;
-const float magn_scale_z = 610.211750;
+const int magn_off_x = 35;
+const int magn_off_y = -123;
+const int magn_off_z = -70;
+const float magn_scale_x = 482.096863;
+const float magn_scale_y = 472.363641;
+const float magn_scale_z = 425.339693;