mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-09 09:24:01 -04:00
autotest: fixed race in MinAltFenceAvoid copter test
This commit is contained in:
parent
75c3b149a2
commit
053cd318ba
@ -1719,8 +1719,6 @@ class AutoTestCopter(vehicle_test_suite.TestSuite):
|
|||||||
# Also check that the vehicle will not try and ascend too fast when trying to backup from a min alt fence due to avoidance
|
# 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):
|
def MinAltFenceAvoid(self):
|
||||||
'''Test Min Alt Fence Avoidance'''
|
'''Test Min Alt Fence Avoidance'''
|
||||||
self.takeoff(30, mode="LOITER")
|
|
||||||
"""Hold loiter position."""
|
|
||||||
|
|
||||||
# enable fence, only min altitude
|
# enable fence, only min altitude
|
||||||
# No action, rely on avoidance to prevent the breach
|
# No action, rely on avoidance to prevent the breach
|
||||||
@ -1731,6 +1729,9 @@ class AutoTestCopter(vehicle_test_suite.TestSuite):
|
|||||||
"FENCE_ACTION": 0,
|
"FENCE_ACTION": 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
self.takeoff(30, mode="LOITER")
|
||||||
|
"""Hold loiter position."""
|
||||||
|
|
||||||
# Try and fly past the fence
|
# Try and fly past the fence
|
||||||
self.set_rc(3, 1120)
|
self.set_rc(3, 1120)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user