autotest: if auto mission fails, land the copter

This commit is contained in:
Francisco Ferreira 2016-05-12 07:52:02 +01:00 committed by Randy Mackay
parent c873524966
commit ae5fdc2fde
1 changed files with 4 additions and 0 deletions

View File

@ -802,6 +802,10 @@ def fly_auto_test(mavproxy, mav):
# fly the mission
ret = wait_waypoint(mav, 0, num_wp-1, timeout=500)
# land if mission failed
if ret == False:
land(mavproxy, mav)
# set throttle to minimum
mavproxy.send('rc 3 1000\n')