projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: TM: Don't turn on packet slave mode until idle/invalid state
[fw/altos]
/
src
/
ao_flight.c
diff --git
a/src/ao_flight.c
b/src/ao_flight.c
index 85c1825bddfebf68c06f2d2b055c511eddae4164..0a9cc046f2c946e74585c6bd307a5dbe148e96f3 100644
(file)
--- a/
src/ao_flight.c
+++ b/
src/ao_flight.c
@@
-91,6
+91,8
@@
ao_flight(void)
*/
ao_flight_state = ao_flight_invalid;
*/
ao_flight_state = ao_flight_invalid;
+ /* Turn on packet system in invalid mode on TeleMetrum */
+ ao_packet_slave_start();
} else
#endif
if (!ao_flight_force_idle
} else
#endif
if (!ao_flight_force_idle
@@
-108,8
+110,10
@@
ao_flight(void)
ao_usb_disable();
#endif
ao_usb_disable();
#endif
- /* Disable packet mode in pad state */
+#if !HAS_ACCEL
+ /* Disable packet mode in pad state on TeleMini */
ao_packet_slave_stop();
ao_packet_slave_stop();
+#endif
/* Turn on telemetry system */
ao_rdf_set(1);
/* Turn on telemetry system */
ao_rdf_set(1);
@@
-121,6
+125,11
@@
ao_flight(void)
/* Set idle mode */
ao_flight_state = ao_flight_idle;
/* Set idle mode */
ao_flight_state = ao_flight_idle;
+#if HAS_ACCEL
+ /* Turn on packet system in idle mode on TeleMetrum */
+ ao_packet_slave_start();
+#endif
+
/* signal successful initialization by turning off the LED */
ao_led_off(AO_LED_RED);
}
/* signal successful initialization by turning off the LED */
ao_led_off(AO_LED_RED);
}