Tools: fixed wait_for_alt

should be a min alt. This is needed for Flip test to pass with new
model, as it doesn't lose as much height as the old model. So it
starts above the min alt
This commit is contained in:
Andrew Tridgell 2020-10-21 10:58:47 +11:00
parent 10a07bf4f9
commit 98dacd5ee4

View File

@ -137,9 +137,9 @@ class AutoTestCopter(AutoTest):
self.progress("TAKEOFF COMPLETE")
def wait_for_alt(self, alt_min=30, timeout=30):
"""Wait for altitude to be reached."""
"""Wait for minimum altitude to be reached."""
self.wait_altitude(alt_min - 1,
(alt_min + 5),
(alt_min + 500),
relative=True,
timeout=timeout)