Skip to content
Snippets Groups Projects
Commit b29f2d5d authored by Davis, Duane T's avatar Davis, Duane T
Browse files

MISSION_PLANNING: Added a "toggle back & forth" from preflight to flight ready

parent b513ff74
No related branches found
No related tags found
No related merge requests found
......@@ -988,6 +988,11 @@ class SwarmManager(nodeable.Nodeable):
(bool(rospy.get_param("flight_ready")))):
self.__update_swarm_state(enums.FLIGHT_READY)
elif ((self.__swarm_state == enums.FLIGHT_READY) and \
(rospy.has_param("flight_ready")) and \
(not bool(rospy.get_param("flight_ready")))):
self.__update_swarm_state(enums.PRE_FLIGHT)
elif self.__swarm_state == enums.PRE_FLIGHT or \
self.__swarm_state == enums.FLIGHT_READY:
if self.__ap_rel_alt > SwarmManager.LAUNCH_ALT:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment