# HG changeset patch # User Paul Boddie # Date 1418753096 0 # Node ID 2001f688df48ab8874fc82f07a9f513b4e14fc46 # Parent ecbfb0661aabe6aa44018ecbc6e8b743e8abc4ea Changed the magnetometer Z-axis scaling to work with the observed output. diff -r ecbfb0661aab -r 2001f688df48 imu.h --- a/imu.h Tue Dec 16 18:03:54 2014 +0000 +++ b/imu.h Tue Dec 16 18:04:56 2014 +0000 @@ -176,7 +176,7 @@ #define IMU_5_6G_UNIT 3030 /* µG (1G / 330) */ #define IMU_8_1G_UNIT 4347 /* µG (1G / 230) */ -#define IMU_MAGNET_Z_XY_RATIO (9.0 / 8.0) /* adjustments to the above for the smaller Z scale */ +#define IMU_MAGNET_Z_XY_RATIO (8.0 / 9.0) /* adjustments to the above for the smaller Z scale */ /* Measurement parameters. */