Browse Source

Tools: autotest: validate RTL if disarmed close to home

master
Pierre Kancir 7 years ago committed by Peter Barker
parent
commit
f441ab9f2a
  1. 2
      Tools/autotest/arducopter.py

2
Tools/autotest/arducopter.py

@ -534,7 +534,7 @@ class AutoTestCopter(AutoTest): @@ -534,7 +534,7 @@ class AutoTestCopter(AutoTest):
self.set_rc(2, 1475)
# disable fence
self.set_parameter("FENCE_ENABLE", 0)
if alt <= 1 and home_distance < 10:
if (alt <= 1 and home_distance < 10) or (not self.armed() and home_distance < 10):
# reduce throttle
self.set_rc(3, 1000)
self.mavproxy.send('switch 2\n') # land mode

Loading…
Cancel
Save