diff options
author | Keith Packard <keithp@keithp.com> | 2014-06-05 18:45:18 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-06-05 18:45:18 -0700 |
commit | b619199345256cdc456f8a0b99c0ad9335e877c7 (patch) | |
tree | a98b206421047b0ba048020564efbf52b4d3b72f /src | |
parent | 97dac0f66bc938940e6b49409d950a1736c92655 (diff) |
altos: Fix tracker start state
Make sure log can start by scanning existing logs
Enable RDF by default
Turn off telemetry until we decide whether to turn it on in the loop
Allow TeleGPS v0.3 to run without ADC
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/product/ao_tracker.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/product/ao_tracker.c b/src/product/ao_tracker.c index 80eade5c..d4960d25 100644 --- a/src/product/ao_tracker.c +++ b/src/product/ao_tracker.c @@ -36,7 +36,7 @@ ao_usb_connected(void) #else #define ao_usb_connected() 1 #endif - + #define STARTUP_AVERAGE 5 static void @@ -54,7 +54,15 @@ ao_tracker(void) int32_t alt_sum = 0; int nsamples = 0; +#if HAS_ADC ao_timer_set_adc_interval(100); +#endif + + ao_log_scan(); + + ao_rdf_set(1); + + ao_telemetry_set_interval(0); ao_flight_state = ao_flight_startup; for (;;) { |