altos/telemega-v1.0: Add fakeflight support
authorKeith Packard <keithp@keithp.com>
Mon, 18 Sep 2017 16:55:13 +0000 (09:55 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 18 Sep 2017 16:59:44 +0000 (09:59 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/telemega-v1.0/Makefile
src/telemega-v1.0/ao_pins.h
src/telemega-v1.0/ao_telemega.c

index 4a1b3908ab3cbcf2dea2b8a7942b3c10e93e99d1..60bd2dbace943dcd184f9adbf8bd9dfeec007613 100644 (file)
@@ -115,6 +115,7 @@ ALTOS_SRC = \
        ao_companion.c \
        ao_pyro.c \
        ao_aprs.c \
+       ao_fake_flight.c \
        $(MATH_SRC) \
        $(PROFILE) \
        $(SAMPLE_PROFILE) \
index 4decbbf7f64cfd13ef6b0916554a65475bc7b164..e12df20901013ce35a4984ca6d8d75df990bba96 100644 (file)
@@ -81,6 +81,7 @@
 #define HAS_TELEMETRY          1
 #define HAS_APRS               1
 #define HAS_COMPANION          1
+#define HAS_FAKE_FLIGHT                1
 
 #define HAS_SPI_1              1
 #define SPI_1_PA5_PA6_PA7      1       /* Barometer */
index 2deb852e1c90e2c5ae2790ba81c2ba4475495730..d4002d40ddc06c08b13eaa256eb1e174656358a8 100644 (file)
@@ -33,6 +33,9 @@
 #if HAS_STACK_GUARD
 #include <ao_mpu.h>
 #endif
+#if HAS_FAKE_FLIGHT
+#include <ao_fake_flight.h>
+#endif
 
 int
 main(void)
@@ -89,6 +92,9 @@ main(void)
        ao_igniter_init();
        ao_companion_init();
        ao_pyro_init();
+#if HAS_FAKE_FLIGHT
+       ao_fake_flight_init();
+#endif
 
        ao_config_init();
 #if AO_PROFILE