summaryrefslogtreecommitdiff
path: root/src/ao_flight_test.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-06 20:56:25 -0800
committerKeith Packard <keithp@keithp.com>2011-03-16 15:57:37 -0700
commit02611efea0c485d78fad08c696c1f56e868d36b8 (patch)
treef51ef97cbc62c88a9084c4de05d4446de58e7142 /src/ao_flight_test.c
parentfdd15a254c6fab5ba2d02320ba0ceb3e6a56354c (diff)
altos: Make serial, usb, beeper and accelerometer optional components
Not all boards will have these, so fix places that use them to deal with that. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_flight_test.c')
-rw-r--r--src/ao_flight_test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ao_flight_test.c b/src/ao_flight_test.c
index 0c2006d5..e75bc8df 100644
--- a/src/ao_flight_test.c
+++ b/src/ao_flight_test.c
@@ -155,6 +155,15 @@ struct ao_config ao_config;
#define DATA_TO_XDATA(x) (x)
+#define HAS_FLIGHT 1
+#define HAS_ADC 1
+#define HAS_USB 1
+#define HAS_GPS 1
+#ifndef HAS_ACCEL
+#define HAS_ACCEL 1
+#endif
+#define HAS_ACCEL_REF 0
+
#include "ao_flight.c"
void