2014-12-16 | Paul Boddie | raw files shortlog changelog graph | Changed the magnetometer Z-axis scaling to work with the observed output. | |
imu.h (file) |
1.1 --- a/imu.h Tue Dec 16 18:03:54 2014 +0000 1.2 +++ b/imu.h Tue Dec 16 18:04:56 2014 +0000 1.3 @@ -176,7 +176,7 @@ 1.4 #define IMU_5_6G_UNIT 3030 /* µG (1G / 330) */ 1.5 #define IMU_8_1G_UNIT 4347 /* µG (1G / 230) */ 1.6 1.7 -#define IMU_MAGNET_Z_XY_RATIO (9.0 / 8.0) /* adjustments to the above for the smaller Z scale */ 1.8 +#define IMU_MAGNET_Z_XY_RATIO (8.0 / 9.0) /* adjustments to the above for the smaller Z scale */ 1.9 1.10 /* Measurement parameters. */ 1.11