From 528defd5600f87bc91412e691603024f78660d54 Mon Sep 17 00:00:00 2001 From: "Dr.-Ing. Amilcar do Carmo Lucas" Date: Wed, 6 Jan 2021 16:40:38 +0100 Subject: [PATCH] Autotest: activate the fence via a mavlink command This should not be required in the future, please fix this and revert this commit --- Tools/autotest/arducopter.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index 77a4eb8210..d39eaa763a 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -1352,6 +1352,17 @@ class AutoTestCopter(AutoTest): self.change_alt(50) + # Activate the floor fence + # TODO this test should run without requiring this + self.run_cmd(mavutil.mavlink.MAV_CMD_DO_FENCE_ENABLE, + 1, + 0, + 0, + 0, + 0, + 0, + 0) + # first east self.progress("turn east") self.set_rc(4, 1580)