From: Keith Packard Date: Fri, 6 Jun 2014 01:45:18 +0000 (-0700) Subject: altos: Fix tracker start state X-Git-Tag: 1.3.2.2~10 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=b619199345256cdc456f8a0b99c0ad9335e877c7;hp=97dac0f66bc938940e6b49409d950a1736c92655 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 --- 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 (;;) {