mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: autotest: validate RTL if disarmed close to home
This commit is contained in:
parent
598b487fef
commit
f441ab9f2a
@ -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…
Reference in New Issue
Block a user