From 98dacd5ee4d58c83fbca3f00a43d83774e3cc852 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 21 Oct 2020 10:58:47 +1100 Subject: [PATCH] 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 --- Tools/autotest/arducopter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index 79a447db95..da5ed54ecd 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -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)