Skip to content

Commit

Permalink
autotest: stop taking off when we're already in the air
Browse files Browse the repository at this point in the history
Depending on timing we can miss the fact we're already at altitude as we
take off in stabilize and manipulate the throttle before checking
altitude
  • Loading branch information
peterbarker committed Sep 10, 2020
1 parent e261a61 commit 995cda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/autotest/arducopter.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def fly_throttle_failsafe(self, side=60, timeout=360):
num_wp = self.load_mission("copter_mission.txt")
if not num_wp:
raise NotAchievedException("load copter_mission failed")
self.takeoffAndMoveAway()
# self.takeoffAndMoveAway()
self.change_mode("AUTO")
self.set_parameter("SIM_RC_FAIL", 1)
self.delay_sim_time(5)
Expand Down

0 comments on commit 995cda6

Please sign in to comment.