From f441ab9f2ad1869e9ee9567f0537f9625b4a4877 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Wed, 29 Aug 2018 14:53:55 +0200 Subject: [PATCH] Tools: autotest: validate RTL if disarmed close to home --- Tools/autotest/arducopter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index 5cd792971f..68172e5617 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -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