autotest: wait for a higher altitude on takeoff

otherwise left circuit can crash
This commit is contained in:
Andrew Tridgell 2013-07-22 13:27:06 +10:00
parent c0697d0a2d
commit ef104b6629
1 changed files with 2 additions and 2 deletions

View File

@ -36,10 +36,10 @@ def takeoff(mavproxy, mav):
# hit the gas harder now, and give it some more elevator
mavproxy.send('rc 2 1100\n')
mavproxy.send('rc 3 1800\n')
mavproxy.send('rc 3 2000\n')
# gain a bit of altitude
if not wait_altitude(mav, homeloc.alt+30, homeloc.alt+60, timeout=30):
if not wait_altitude(mav, homeloc.alt+150, homeloc.alt+180, timeout=30):
return False
# level off