summaryrefslogtreecommitdiff
path: root/src/ao_report.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-28 18:18:50 -0700
committerKeith Packard <keithp@keithp.com>2011-03-28 18:18:50 -0700
commitc6e7e812d67f91c63ba4982f7a899a72584027de (patch)
tree4ad94e66241acfba41ddfbfa3885a416d361c2f8 /src/ao_report.c
parentc754759a2d503633d527da4ebb20eb859cd506fd (diff)
altos: Create custom nano flight code
No igniters, just 'pad/drogue/landed' modes (where 'drogue' == 'flying'). A constant 1Hz telemetry and RDF rate. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_report.c')
-rw-r--r--src/ao_report.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ao_report.c b/src/ao_report.c
index 4f7fd657..b9dc5bb4 100644
--- a/src/ao_report.c
+++ b/src/ao_report.c
@@ -109,6 +109,7 @@ ao_report_altitude(void)
}
}
+#if HAS_IGNITE
static uint8_t
ao_report_igniter_ready(enum ao_igniter igniter)
{
@@ -146,6 +147,7 @@ ao_report_continuity(void) __reentrant
while (c-- && ao_flight_state == ao_flight_pad)
pause(AO_MS_TO_TICKS(100));
}
+#endif
void
ao_report(void)
@@ -155,10 +157,12 @@ ao_report(void)
if (ao_flight_state == ao_flight_landed)
ao_report_altitude();
ao_report_beep();
+#if HAS_IGNITE
if (ao_flight_state == ao_flight_idle)
ao_report_continuity();
while (ao_flight_state == ao_flight_pad)
ao_report_continuity();
+#endif
__critical {
while (ao_report_state == ao_flight_state)
ao_sleep(DATA_TO_XDATA(&ao_flight_state));