Added external magnetometer functionality

Dependencies:   HMC58X31 MODI2C MPU6050 MS561101BA

Dependents:   Quadcopter_mk2

Fork of FreeIMU by Yifei Teng

Revision:
13:21b275eeeda2
Parent:
9:a79af1283446
Child:
17:48a0eae27bf1
--- a/calibration.h	Mon Feb 10 01:13:34 2014 +0000
+++ b/calibration.h	Thu Sep 18 08:43:06 2014 +0000
@@ -7,16 +7,16 @@
 
 #define CALIBRATION_H
 
-const int acc_off_x = 72;
-const int acc_off_y = -8;
-const int acc_off_z = 211;
-const float acc_scale_x = 15827.435944;
-const float acc_scale_y = 16533.974047;
-const float acc_scale_z = 16841.679423;
+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 magn_off_x = 56;
-const int magn_off_y = -73;
-const int magn_off_z = -145;
-const float magn_scale_x = 753.324584;
-const float magn_scale_y = 742.324931;
-const float magn_scale_z = 632.931308;
+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;