Added external magnetometer functionality

Dependencies:   HMC58X31 MODI2C MPU6050 MS561101BA

Dependents:   Quadcopter_mk2

Fork of FreeIMU by Yifei Teng

Revision:
1:794e9cdbc2a0
Parent:
0:21840c01d3d7
Child:
9:a79af1283446
--- a/calibration.h	Sat Nov 02 17:25:51 2013 +0000
+++ b/calibration.h	Tue Nov 05 11:31:39 2013 +0000
@@ -7,16 +7,16 @@
 
 #define CALIBRATION_H
 
-const int acc_off_x = 799;
-const int acc_off_y = 143;
-const int acc_off_z = -2724;
-const float acc_scale_x = 15256.909937;
-const float acc_scale_y = 17366.956857;
-const float acc_scale_z = 18168.225188;
+const int acc_off_x = 291;
+const int acc_off_y = -236;
+const int acc_off_z = -2330;
+const float acc_scale_x = 15073.187570;
+const float acc_scale_y = 16496.811960;
+const float acc_scale_z = 16887.470139;
 
-const int magn_off_x = 10;
-const int magn_off_y = -45;
-const int magn_off_z = -161;
-const float magn_scale_x = 353.204566;
-const float magn_scale_y = 478.401406;
-const float magn_scale_z = 491.092701;
+const int magn_off_x = 41;
+const int magn_off_y = -67;
+const int magn_off_z = -150;
+const float magn_scale_x = 486.457717;
+const float magn_scale_y = 503.317575;
+const float magn_scale_z = 410.482174;