diff options
| author | Keith Packard <keithp@keithp.com> | 2014-07-19 22:35:30 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-08-14 19:08:19 -0700 |
| commit | d8e2b661e895fc59ded002a02191dcccce75f548 (patch) | |
| tree | 5a69b7438fe91a26f31d082b60c2af93ac4029b4 /src/product | |
| parent | 59976c44d1b6ee6505cfa4efd9a26ec4302f6c33 (diff) | |
altos: Have MicroKite just start recording at startup
This avoids having MicroKite try to detect boost and has it just start
recording data immediately.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/product')
| -rw-r--r-- | src/product/ao_micropeak.c | 3 | ||||
| -rw-r--r-- | src/product/ao_micropeak.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/product/ao_micropeak.c b/src/product/ao_micropeak.c index 10f0d192..54522d86 100644 --- a/src/product/ao_micropeak.c +++ b/src/product/ao_micropeak.c @@ -73,8 +73,9 @@ main(void) ao_report_altitude(); ao_pips(); ao_log_micro_dump(); - +#if BOOST_DELAY ao_delay(BOOST_DELAY); +#endif ao_microflight(); diff --git a/src/product/ao_micropeak.h b/src/product/ao_micropeak.h index 396b9a23..622f5a69 100644 --- a/src/product/ao_micropeak.h +++ b/src/product/ao_micropeak.h @@ -41,7 +41,9 @@ #endif /* Wait after power on before doing anything to give the user time to assemble the rocket */ +#ifndef BOOST_DELAY #define BOOST_DELAY AO_SEC_TO_TICKS(60) +#endif /* Pressure change (in Pa) to detect landing */ #define LAND_DETECT 24 /* 2m at sea level, 2.4m at 2000m */ |
