Added external magnetometer functionality

Dependencies:   HMC58X31 MODI2C MPU6050 MS561101BA

Dependents:   Quadcopter_mk2

Fork of FreeIMU by Yifei Teng

Revision:
18:0065ffbcd39b
Parent:
17:48a0eae27bf1
--- a/calibration.h	Wed Mar 04 18:50:06 2015 +0000
+++ b/calibration.h	Wed Apr 01 11:18:37 2015 +0000
@@ -7,16 +7,16 @@
 
 #define CALIBRATION_H
 
-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 acc_off_x = 449;
+const int acc_off_y = -27;
+const int acc_off_z = -209;
+const float acc_scale_x = 16285.089903;
+const float acc_scale_y = 16533.516295;
+const float acc_scale_z = 16728.196873;
 
-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;
+const int magn_off_x = 38;
+const int magn_off_y = -131;
+const int magn_off_z = -53;
+const float magn_scale_x = 515.502737;
+const float magn_scale_y = 504.864575;
+const float magn_scale_z = 455.191322;