From b4ce3e0ba5e4c580a9e2ff0d4d91d047725c7497 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 22 Jan 2015 11:33:25 +1100 Subject: [PATCH] autotest: lock in the altitude before the FBWB test --- Tools/autotest/arduplane.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tools/autotest/arduplane.py b/Tools/autotest/arduplane.py index 165a1605ac..c591bcb7fd 100644 --- a/Tools/autotest/arduplane.py +++ b/Tools/autotest/arduplane.py @@ -338,6 +338,12 @@ def test_FBWB(mavproxy, mav, count=1, mode='FBWB'): mavproxy.send('rc 3 1700\n') mavproxy.send('rc 2 1500\n') + # lock in the altitude by asking for an altitude change then releasing + mavproxy.send('rc 2 1000\n') + wait_distance(mav, 50, accuracy=20) + mavproxy.send('rc 2 1500\n') + wait_distance(mav, 50, accuracy=20) + m = mav.recv_match(type='VFR_HUD', blocking=True) initial_alt = m.alt print("Initial altitude %u\n" % initial_alt)