altos: Delay restart of RDF at apogee
authorKeith Packard <keithp@keithp.com>
Sun, 4 Sep 2011 15:48:05 +0000 (08:48 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 4 Sep 2011 15:48:05 +0000 (08:48 -0700)
Instead of immediately trying to send RDF at apogee, start it after
the usual RDF interval to avoid doing RDF while firing the apogee igniter.

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

index c7338a581f64cef7e1dd73ac2c4dd94e274d9209..d006aa59d8297580338b8029ebf16c4a9543dd2e 100644 (file)
@@ -258,7 +258,7 @@ ao_rdf_set(uint8_t rdf)
        if (rdf == 0)
                ao_radio_rdf_abort();
        else
-               ao_rdf_time = ao_time();
+               ao_rdf_time = ao_time() + AO_RDF_INTERVAL_TICKS;
 }
 
 __xdata struct ao_task ao_telemetry_task;