Browse Source

autotest: improve debug around heli poshold takeoff test

zr-v5.1
Peter Barker 5 years ago committed by Peter Barker
parent
commit
f14c9db568
  1. 6
      Tools/autotest/arducopter.py

6
Tools/autotest/arducopter.py

@ -5574,8 +5574,10 @@ class AutoTestHeli(AutoTestCopter):
self.delay_sim_time(20) self.delay_sim_time(20)
# check we are still on the ground... # check we are still on the ground...
m = self.mav.recv_match(type='GLOBAL_POSITION_INT', blocking=True) m = self.mav.recv_match(type='GLOBAL_POSITION_INT', blocking=True)
if abs(m.relative_alt) > 100: max_relalt = 100
raise NotAchievedException("Took off prematurely") if abs(m.relative_alt) > max_relalt:
raise NotAchievedException("Took off prematurely (abs(%f)>%f)" %
(m.relative_alt, max_relalt))
self.progress("Pushing throttle past half-way") self.progress("Pushing throttle past half-way")
self.set_rc(3, 1600) self.set_rc(3, 1600)
self.delay_sim_time(0.5) self.delay_sim_time(0.5)

Loading…
Cancel
Save