Skip to content

Commit

Permalink
balloon_strategy: wait for GUIDED_ENABLE mission command
Browse files Browse the repository at this point in the history
Previously it waited for GUIDED (command 90) but this has been replaced
by GUIDED_ENABLE (command 92)
  • Loading branch information
rmackay9 committed Oct 14, 2014
1 parent 6917cd0 commit aa22ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/balloon_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ def check_status(self):
active_command = self.vehicle.commands.next
active_command_id = self.vehicle.commands[active_command].command

# ninety is the MAVLink id for Nav-Guided commands
if active_command_id == 90:
# ninety two is the MAVLink id for Nav-Guided-Enable commands
if active_command_id == 92:
if not self.controlling_vehicle:
self.controlling_vehicle = True
self.mission_alt_min = self.vehicle.commands[active_command].param2
Expand Down

0 comments on commit aa22ca6

Please sign in to comment.