projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make RDF beacon only run on pad and after landing.
[fw/altos]
/
src
/
ao_flight.c
diff --git
a/src/ao_flight.c
b/src/ao_flight.c
index 2b062c13fbec8a0a545530015f077a5ad8b8307c..ec89e7c2f7e97bdbbb850ead7f1015b1e45e83f1 100644
(file)
--- a/
src/ao_flight.c
+++ b/
src/ao_flight.c
@@
-360,9
+360,6
@@
ao_flight(void)
/* slow down the ADC sample rate */
ao_timer_set_adc_interval(10);
/* slow down the ADC sample rate */
ao_timer_set_adc_interval(10);
- /* Enable RDF beacon */
- ao_rdf_set(1);
-
/*
* Start recording min/max accel and pres for a while
* to figure out when the rocket has landed
/*
* Start recording min/max accel and pres for a while
* to figure out when the rocket has landed
@@
-445,6
+442,8
@@
ao_flight(void)
/* turn off the ADC capture */
ao_timer_set_adc_interval(0);
/* turn off the ADC capture */
ao_timer_set_adc_interval(0);
+ /* Enable RDF beacon */
+ ao_rdf_set(1);
ao_wakeup(DATA_TO_XDATA(&ao_flight_state));
}
ao_wakeup(DATA_TO_XDATA(&ao_flight_state));
}