altos: The kalman code requires a constant sample rate
authorKeith Packard <keithp@keithp.com>
Sun, 20 Mar 2011 06:51:02 +0000 (23:51 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 20 Mar 2011 06:51:02 +0000 (23:51 -0700)
The kalman function can't handle a variable sample rate, so keep the
ADC running at full speed for the whole flight instead of slowing it
down after apogee.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_flight.c

index 71dd4891669523b130f1ad2681f1ca54abc78b0f..493913b2c1b2a91732bde0fc9cbf407ee2609196 100644 (file)
@@ -627,8 +627,10 @@ ao_flight(void)
                                /* slow down the telemetry system */
                                ao_telemetry_set_interval(AO_TELEMETRY_INTERVAL_RECOVER);
 
+#if !USE_KALMAN
                                /* slow down the ADC sample rate */
                                ao_timer_set_adc_interval(10);
+#endif
 
                                /*
                                 * Start recording min/max accel and pres for a while