Autotest: activate the fence via a mavlink command

This should not be required in the future, please fix this and revert this commit
This commit is contained in:
Dr.-Ing. Amilcar do Carmo Lucas 2021-01-06 16:40:38 +01:00 committed by Peter Barker
parent 92122e5133
commit 528defd560
1 changed files with 11 additions and 0 deletions

View File

@ -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)