Skip to content

Commit

Permalink
autotest: fixed race in MinAltFenceAvoid copter test
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Dec 10, 2024
1 parent a4eb11a commit 237226a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tools/autotest/arducopter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1719,8 +1719,6 @@ def MinAltFence(self):
# Also check that the vehicle will not try and ascend too fast when trying to backup from a min alt fence due to avoidance
def MinAltFenceAvoid(self):
'''Test Min Alt Fence Avoidance'''
self.takeoff(30, mode="LOITER")
"""Hold loiter position."""

# enable fence, only min altitude
# No action, rely on avoidance to prevent the breach
Expand All @@ -1731,6 +1729,9 @@ def MinAltFenceAvoid(self):
"FENCE_ACTION": 0,
})

self.takeoff(30, mode="LOITER")
"""Hold loiter position."""

# Try and fly past the fence
self.set_rc(3, 1120)

Expand Down

0 comments on commit 237226a

Please sign in to comment.