From 70669434a2d0445037845be024692aaa1731209d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 4 Jun 2012 14:55:40 +1000 Subject: [PATCH] autotest: wait for VFR_HUD to be non-zero on startup --- Tools/autotest/arduplane.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Tools/autotest/arduplane.py b/Tools/autotest/arduplane.py index 2fe9ae12fb..1638ad898b 100644 --- a/Tools/autotest/arduplane.py +++ b/Tools/autotest/arduplane.py @@ -293,6 +293,7 @@ def fly_ArduPlane(viewerip=None): print("Setting up RC parameters") setup_rc(mavproxy) print("Waiting for GPS fix") + mav.recv_match(condition='VFR_HUD.alt>0', blocking=True) mav.wait_gps_fix() homeloc = mav.location() print("Home location: %s" % homeloc)