altos: Use ao_data_accel_invert when changing orientation value
authorKeith Packard <keithp@keithp.com>
Thu, 18 Apr 2019 21:42:15 +0000 (14:42 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 18 Apr 2019 21:42:15 +0000 (14:42 -0700)
commitdf08028ff5dd892dafa667fde1fbf9de43f82fea
tree23d337a6dc8427255b92d772716c6b850ae69de7
parent774001a9426493fd5c0d5a237da6cb903b1259a8
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>
src/kernel/ao_config.c
src/kernel/ao_data.h
src/telefireone-v1.0/Makefile