Added external magnetometer functionality

Dependencies:   HMC58X31 MODI2C MPU6050 MS561101BA

Dependents:   Quadcopter_mk2

Fork of FreeIMU by Yifei Teng

Revision:
9:a79af1283446
Parent:
1:794e9cdbc2a0
Child:
13:21b275eeeda2
diff -r cd43764b9623 -r a79af1283446 calibration.h
--- a/calibration.h	Mon Dec 23 09:41:27 2013 +0000
+++ b/calibration.h	Fri Jan 10 05:41:40 2014 +0000
@@ -7,16 +7,16 @@
 
 #define CALIBRATION_H
 
-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 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 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;
+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;