Skip to content

Commit

Permalink
autotest: Change AC_FENCE_ACTION to an ENUM
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Sep 12, 2024
1 parent 043d7ad commit 2a7c15e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/autotest/arduplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@ def FenceStatic(self):
# test a rather unfortunate behaviour:
self.progress("Killing a live fence with fence-clear")
self.load_fence("CMAC-fence.txt")
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.do_fence_enable()
self.assert_fence_sys_status(True, True, True)
self.clear_fence()
Expand Down Expand Up @@ -1602,7 +1602,7 @@ def test_fence_breach_circle_at(self, loc, disable_on_breach=False):
self.set_parameters({
"RTL_RADIUS": want_radius,
"NAVL1_LIM_BANK": 60,
"FENCE_ACTION": 1, # AC_FENCE_ACTION_RTL_AND_LAND == 1. mavutil.mavlink.FENCE_ACTION_RTL == 4
"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
Expand Down

0 comments on commit 2a7c15e

Please sign in to comment.