From 7a99160ea2119454ff3dbd5d6888c71cdadf7f6e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell <tridge@samba.org> Date: Mon, 27 Aug 2012 13:19:21 +1000 Subject: [PATCH] autotest: loiter can be a bit slow to circle sometimes --- Tools/autotest/arduplane.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/autotest/arduplane.py b/Tools/autotest/arduplane.py index aeb76e5a5a..a70749c51a 100644 --- a/Tools/autotest/arduplane.py +++ b/Tools/autotest/arduplane.py @@ -93,9 +93,9 @@ def fly_LOITER(mavproxy, mav, num_circles=4): mavproxy.send('loiter\n') wait_mode(mav, 'LOITER') while num_circles > 0: - if not wait_heading(mav, 0, accuracy=10): + if not wait_heading(mav, 0, accuracy=10, timeout=60): return False - if not wait_heading(mav, 180, accuracy=10): + if not wait_heading(mav, 180, accuracy=10, timeout=60): return False num_circles -= 1 print("Loiter %u circles left" % num_circles)