altos: Enable accel-only speed debugging
authorKeith Packard <keithp@keithp.com>
Fri, 16 Oct 2020 19:46:33 +0000 (12:46 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 16 Oct 2020 19:46:33 +0000 (12:46 -0700)
This dumps accel/speed data in idle mode for validating the speed data.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_flight.c

index 883098ed9bdebbb08ff1a29432861b3c34ab6fc6..a81b9c652c1265ca8f25ed2f228734caa525246d 100644 (file)
@@ -102,6 +102,10 @@ uint8_t                    ao_flight_force_idle;
 
 #define abs(a) ((a) < 0 ? -(a) : (a))
 
+#if !HAS_BARO
+#define DEBUG_ACCEL_ONLY       1
+#endif
+
 void
 ao_flight(void)
 {