Added external magnetometer functionality

Dependencies:   HMC58X31 MODI2C MPU6050 MS561101BA

Dependents:   Quadcopter_mk2

Fork of FreeIMU by Yifei Teng

Committer:
joe4465
Date:
Wed Mar 04 18:50:06 2015 +0000
Revision:
17:48a0eae27bf1
Parent:
13:21b275eeeda2
Child:
18:0065ffbcd39b
Improved external magnetometer code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tyftyftyf 0:21840c01d3d7 1
tyftyftyf 0:21840c01d3d7 2 /**
tyftyftyf 0:21840c01d3d7 3 * FreeIMU calibration header. Automatically generated by FreeIMU_GUI.
tyftyftyf 0:21840c01d3d7 4 * Do not edit manually unless you know what you are doing.
tyftyftyf 0:21840c01d3d7 5 */
tyftyftyf 0:21840c01d3d7 6
tyftyftyf 0:21840c01d3d7 7
tyftyftyf 0:21840c01d3d7 8 #define CALIBRATION_H
tyftyftyf 0:21840c01d3d7 9
joe4465 17:48a0eae27bf1 10 const int acc_off_x = 117;
joe4465 17:48a0eae27bf1 11 const int acc_off_y = 57;
joe4465 17:48a0eae27bf1 12 const int acc_off_z = -785;
joe4465 17:48a0eae27bf1 13 const float acc_scale_x = 16371.245813;
joe4465 17:48a0eae27bf1 14 const float acc_scale_y = 16402.576538;
joe4465 17:48a0eae27bf1 15 const float acc_scale_z = 16638.329459;
tyftyftyf 0:21840c01d3d7 16
joe4465 17:48a0eae27bf1 17 const int magn_off_x = 35;
joe4465 17:48a0eae27bf1 18 const int magn_off_y = -123;
joe4465 17:48a0eae27bf1 19 const int magn_off_z = -70;
joe4465 17:48a0eae27bf1 20 const float magn_scale_x = 482.096863;
joe4465 17:48a0eae27bf1 21 const float magn_scale_y = 472.363641;
joe4465 17:48a0eae27bf1 22 const float magn_scale_z = 425.339693;