From 303e40f5786768bea66f9ab665bce5050eef2565 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Tue, 31 Jul 2018 11:53:36 +0200 Subject: [PATCH] Tools: arducopter.py: add tolerance to takeoff alt --- Tools/autotest/arducopter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index b44d1f1485..610123d52b 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -160,7 +160,7 @@ class AutoTestCopter(AutoTest): 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, + self.wait_altitude(alt_min - 1, (alt_min + 5), relative=True)