Browse Source

autotest: if auto mission fails, land the copter

mission-4.1.18
Francisco Ferreira 9 years ago committed by Randy Mackay
parent
commit
ae5fdc2fde
  1. 4
      Tools/autotest/arducopter.py

4
Tools/autotest/arducopter.py

@ -802,6 +802,10 @@ def fly_auto_test(mavproxy, mav): @@ -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')

Loading…
Cancel
Save