#include <ao_micropeak.h>
#include <ao_ms5607.h>
#include <ao_log_micro.h>
+#include <ao_async.h>
static struct ao_ms5607_sample sample;
static struct ao_ms5607_value value;
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)
{
ao_log_micro_restore();
ao_compute_height();
ao_report_altitude();
+ ao_pips();
ao_log_micro_dump();
ao_delay(BOOST_DELAY);