summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-10-27 22:44:49 -0700
committerKeith Packard <keithp@keithp.com>2013-10-27 22:44:49 -0700
commite923e11e185fd42d2a83e18b3d13bd839a72b1aa (patch)
tree9ddd913e017af09da89c56b81a6c9e4fd32f7c43
parent351d53836e201834a2d89773a08ab7c2dab2b2f4 (diff)
altos: IMU accel calibration values need to be signed
The MPU6000 reports signed values. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/core/ao.h6
1 files 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
};