From e923e11e185fd42d2a83e18b3d13bd839a72b1aa Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 27 Oct 2013 22:44:49 -0700 Subject: [PATCH 1/1] altos: IMU accel calibration values need to be signed The MPU6000 reports signed values. Signed-off-by: Keith Packard --- src/core/ao.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/ao.h b/src/core/ao.h index d12f13a0..0b634a79 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -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 }; -- 2.30.2