altos: IMU accel calibration values need to be signed
authorKeith Packard <keithp@keithp.com>
Mon, 28 Oct 2013 05:44:49 +0000 (22:44 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 28 Oct 2013 05:44:49 +0000 (22:44 -0700)
The MPU6000 reports signed values.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao.h

index d12f13a08f0f3979e4cbae178b8db33133e9836b..0b634a7994dd83ad0361649f66a6463c46645b85 100644 (file)
@@ -774,9 +774,9 @@ struct ao_config {
        uint8_t         radio_amp;              /* minor version 14 */
 #endif
 #if HAS_GYRO
-       uint16_t        accel_zero_along;       /* minor version 15 */
-       uint16_t        accel_zero_across;      /* minor version 15 */
-       uint16_t        accel_zero_through;     /* minor version 15 */
+       int16_t         accel_zero_along;       /* minor version 15 */
+       int16_t         accel_zero_across;      /* minor version 15 */
+       int16_t         accel_zero_through;     /* minor version 15 */
 #endif
 };