projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7e9c344
)
altos: Enable accel-only speed debugging
author
Keith Packard
<keithp@keithp.com>
Fri, 16 Oct 2020 19:46:33 +0000
(12:46 -0700)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/src/kernel/ao_flight.c
b/src/kernel/ao_flight.c
index 883098ed9bdebbb08ff1a29432861b3c34ab6fc6..a81b9c652c1265ca8f25ed2f228734caa525246d 100644
(file)
--- a/
src/kernel/ao_flight.c
+++ b/
src/kernel/ao_flight.c
@@
-102,6
+102,10
@@
uint8_t ao_flight_force_idle;
#define abs(a) ((a) < 0 ? -(a) : (a))
#define abs(a) ((a) < 0 ? -(a) : (a))
+#if !HAS_BARO
+#define DEBUG_ACCEL_ONLY 1
+#endif
+
void
ao_flight(void)
{
void
ao_flight(void)
{