autotest: Plane: wait for origin before enabling fence

we load into memory as origin-relative positions
This commit is contained in:
Peter Barker 2021-08-12 16:01:51 +10:00 committed by Peter Barker
parent b6ec06ac0f
commit d03cfb8615
1 changed files with 2 additions and 0 deletions

View File

@ -1258,6 +1258,8 @@ class AutoTestPlane(AutoTest):
self.set_parameter("NAVL1_LIM_BANK", 60) self.set_parameter("NAVL1_LIM_BANK", 60)
self.set_parameter("FENCE_ACTION", 1) # AC_FENCE_ACTION_RTL_AND_LAND == 1. mavutil.mavlink.FENCE_ACTION_RTL == 4 self.set_parameter("FENCE_ACTION", 1) # AC_FENCE_ACTION_RTL_AND_LAND == 1. mavutil.mavlink.FENCE_ACTION_RTL == 4
self.wait_ready_to_arm() # need an origin to load fence
self.do_fence_enable() self.do_fence_enable()
self.assert_fence_sys_status(True, True, True) self.assert_fence_sys_status(True, True, True)