diff options
author | Keith Packard <keithp@keithp.com> | 2012-12-18 00:39:37 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-12-18 00:39:37 -0800 |
commit | d7d35b0bd86b912c43a21a275347fca201079847 (patch) | |
tree | 12b2c6f41edb3a00af6d143f1dc864dbe77aecd3 /src | |
parent | 23dc9a63ae8bc982d9352cfb7a3f508d8a08c374 (diff) |
altos: Add distinct LED pattern before writing log data
Otherwise, the whole log looks like a an extra altitude digit.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/micropeak/ao_micropeak.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/micropeak/ao_micropeak.c b/src/micropeak/ao_micropeak.c index f579a09a..82012800 100644 --- a/src/micropeak/ao_micropeak.c +++ b/src/micropeak/ao_micropeak.c @@ -49,6 +49,17 @@ ao_compute_height(void) ao_max_height = max_alt - ground_alt; } +static void +ao_pips(void) +{ + uint8_t i; + for (i = 0; i < 10; i++) { + ao_led_toggle(AO_LED_REPORT); + ao_delay(AO_MS_TO_TICKS(80)); + } + ao_delay(AO_MS_TO_TICKS(200)); +} + int main(void) { @@ -71,6 +82,7 @@ main(void) ao_log_micro_restore(); ao_compute_height(); ao_report_altitude(); + ao_pips(); ao_log_micro_dump(); ao_delay(BOOST_DELAY); |