Browse Source

autotest: lock in the altitude before the FBWB test

master
Andrew Tridgell 10 years ago
parent
commit
b4ce3e0ba5
  1. 6
      Tools/autotest/arduplane.py

6
Tools/autotest/arduplane.py

@ -338,6 +338,12 @@ def test_FBWB(mavproxy, mav, count=1, mode='FBWB'): @@ -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)

Loading…
Cancel
Save