Browse Source

autotest: stop taking off when we're already in the air

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
c415-sdk
Peter Barker 4 years ago committed by Peter Barker
parent
commit
995cda6363
  1. 2
      Tools/autotest/arducopter.py

2
Tools/autotest/arducopter.py

@ -656,7 +656,7 @@ class AutoTestCopter(AutoTest):
num_wp = self.load_mission("copter_mission.txt") num_wp = self.load_mission("copter_mission.txt")
if not num_wp: if not num_wp:
raise NotAchievedException("load copter_mission failed") raise NotAchievedException("load copter_mission failed")
self.takeoffAndMoveAway() # self.takeoffAndMoveAway()
self.change_mode("AUTO") self.change_mode("AUTO")
self.set_parameter("SIM_RC_FAIL", 1) self.set_parameter("SIM_RC_FAIL", 1)
self.delay_sim_time(5) self.delay_sim_time(5)

Loading…
Cancel
Save