diff options
author | Keith Packard <keithp@keithp.com> | 2011-01-07 20:26:39 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-01-07 20:26:39 -0800 |
commit | 52ac83fedbfd380d14d4df2e79992bbdfba3552a (patch) | |
tree | d7d9d74d72060de6066a83c3e275469e3b0c5d74 /src/ao_report.c | |
parent | 00891b40754962ef6530b237ef52017bb58112d5 (diff) |
altos: Check for full log and complain
Reports special tone along with the continuity checks.
Reports flight 0 in telemetry.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_report.c')
-rw-r--r-- | src/ao_report.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ao_report.c b/src/ao_report.c index 511b4f16..cc8b512b 100644 --- a/src/ao_report.c +++ b/src/ao_report.c @@ -128,6 +128,16 @@ ao_report_continuity(void) __reentrant ao_beep_for(AO_BEEP_LOW, AO_MS_TO_TICKS(20)); } } + if (ao_log_full()) { + pause(AO_MS_TO_TICKS(100)); + c = 2; + while (c--) { + ao_beep_for(AO_BEEP_LOW, AO_MS_TO_TICKS(100)); + ao_beep_for(AO_BEEP_MID, AO_MS_TO_TICKS(100)); + ao_beep_for(AO_BEEP_HIGH, AO_MS_TO_TICKS(100)); + ao_beep_for(AO_BEEP_MID, AO_MS_TO_TICKS(100)); + } + } c = 50; while (c-- && ao_flight_state == ao_flight_pad) pause(AO_MS_TO_TICKS(100)); |