Browse Source

Autotest: copter: fix wait_for_alt for descending wait

c415-sdk
Pierre Kancir 5 years ago committed by Peter Barker
parent
commit
084ec2bb5a
  1. 3
      Tools/autotest/arducopter.py

3
Tools/autotest/arducopter.py

@ -138,9 +138,6 @@ class AutoTestCopter(AutoTest): @@ -138,9 +138,6 @@ class AutoTestCopter(AutoTest):
def wait_for_alt(self, alt_min=30, timeout=30):
"""Wait for altitude to be reached."""
m = self.mav.recv_match(type='GLOBAL_POSITION_INT', blocking=True)
alt = m.relative_alt / 1000.0 # mm -> m
if alt < alt_min:
self.wait_altitude(alt_min - 1,
(alt_min + 5),
relative=True,

Loading…
Cancel
Save