summaryrefslogtreecommitdiff
path: root/ao_flight.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-05-10 22:58:31 -0700
committerKeith Packard <keithp@keithp.com>2009-05-10 22:58:31 -0700
commite9584e846b9bd7926d61451d32ba5d7a30416f7b (patch)
treeb79e2304e15154a010d6dad49d3af1428ac22c05 /ao_flight.c
parent97cecb517cd7bf75e1219c76a93bfe6964c07052 (diff)
Decrease telemetry rate on the pad to 1/sec instead of 20/sec
Transmitting telemetry through the radio consumes a significant amount of battery; reducing the rate to 1/sec will reduce power usage while waiting for launch. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao_flight.c')
-rw-r--r--ao_flight.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ao_flight.c b/ao_flight.c
index 43fd98b2..f4b5279b 100644
--- a/ao_flight.c
+++ b/ao_flight.c
@@ -223,7 +223,7 @@ ao_flight(void)
/* Turn on telemetry system
*/
ao_rdf_set(1);
- ao_telemetry_set_interval(AO_TELEMETRY_INTERVAL_FLIGHT);
+ ao_telemetry_set_interval(AO_TELEMETRY_INTERVAL_PAD);
ao_flight_state = ao_flight_launchpad;
ao_wakeup(DATA_TO_XDATA(&ao_flight_state));
@@ -259,6 +259,9 @@ ao_flight(void)
/* start logging data */
ao_log_start();
+ /* Increase telemetry rate */
+ ao_telemetry_set_interval(AO_TELEMETRY_INTERVAL_FLIGHT);
+
/* disable RDF beacon */
ao_rdf_set(0);