From a9621191d8f4a4360650f18548d8694123476334 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 4 Sep 2018 12:53:53 +1000 Subject: [PATCH] Tools: autotest: correct descent throttle in copter fence test 1500 is sufficient that we may not descend. --- Tools/autotest/arducopter.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index 2e5950aafa..a2ba5b49db 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -515,18 +515,17 @@ class AutoTestCopter(AutoTest): alt = m.relative_alt / 1000.0 # mm -> m pos = self.mav.location() home_distance = self.get_distance(HOME, pos) - self.progress("Alt: %u HomeDistance: %.0f" % + self.progress("Alt: %f HomeDistance: %.0f" % (alt, home_distance)) # recenter pitch sticks once we're home so we don't fly off again if pitching_forward and home_distance < 10: pitching_forward = False - self.set_rc(2, 1500) + self.set_rc(2, 1475) # disable fence self.set_parameter("FENCE_ENABLE", 0) if alt <= 1 and home_distance < 10: # reduce throttle self.set_rc(3, 1000) - # switch mode to stabilize self.mavproxy.send('switch 2\n') # land mode self.wait_mode('LAND') self.progress("Waiting for disarm")