X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fmicropeak%2Fao_micropeak.c;h=8201280000e9d8c2cfd0491976501529a92b318f;hp=3bbc7eea59a09c348d4c4debf4e1e019db45ea4c;hb=f7a56152808c7838c1886884bb77de2705ab076c;hpb=fc2e5beb9173663e1e37a9b5a7b6eea1046222f7 diff --git a/src/micropeak/ao_micropeak.c b/src/micropeak/ao_micropeak.c index 3bbc7eea..82012800 100644 --- a/src/micropeak/ao_micropeak.c +++ b/src/micropeak/ao_micropeak.c @@ -19,6 +19,7 @@ #include #include #include +#include static struct ao_ms5607_sample sample; static struct ao_ms5607_value value; @@ -48,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) { @@ -70,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);