diff options
author | Keith Packard <keithp@keithp.com> | 2019-04-18 14:42:15 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2019-04-18 14:42:15 -0700 |
commit | df08028ff5dd892dafa667fde1fbf9de43f82fea (patch) | |
tree | 23d337a6dc8427255b92d772716c6b850ae69de7 /src/kernel/ao_data.h | |
parent | 774001a9426493fd5c0d5a237da6cb903b1259a8 (diff) |
altos: Use ao_data_accel_invert when changing orientation value
Instead of using AO_ACCEL_INVERT, use the macro which flips the values
around. This fixes a bug with ADXL375 flight computers (EasyMega v2.0) where the
accel cal values would be scrambled when changing orientation.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_data.h')
-rw-r--r-- | src/kernel/ao_data.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/kernel/ao_data.h b/src/kernel/ao_data.h index dda5de4c..abbace8e 100644 --- a/src/kernel/ao_data.h +++ b/src/kernel/ao_data.h @@ -328,8 +328,6 @@ typedef int16_t accel_t; #define HAS_ACCEL 1 -#define AO_ACCEL_INVERT 0 - typedef int16_t accel_t; /* MPU6000 is hooked up so that positive y is positive acceleration */ |