From df08028ff5dd892dafa667fde1fbf9de43f82fea Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 18 Apr 2019 14:42:15 -0700 Subject: 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 --- src/kernel/ao_data.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/kernel/ao_data.h') 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 */ -- cgit v1.2.3