mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Tools: autotest: correct timeout on heli spline mission
This commit is contained in:
parent
108d7fa024
commit
de3c9340cb
@ -3909,7 +3909,7 @@ class AutoTestHeli(AutoTestCopter):
|
|||||||
if ex is not None:
|
if ex is not None:
|
||||||
raise ex
|
raise ex
|
||||||
|
|
||||||
def fly_spline_waypoint(self):
|
def fly_spline_waypoint(self, timeout=600):
|
||||||
"""ensure basic spline functionality works"""
|
"""ensure basic spline functionality works"""
|
||||||
self.load_mission("copter_spline_mission.txt")
|
self.load_mission("copter_spline_mission.txt")
|
||||||
self.change_mode("LOITER")
|
self.change_mode("LOITER")
|
||||||
@ -3922,11 +3922,10 @@ class AutoTestHeli(AutoTestCopter):
|
|||||||
self.set_rc(3, 1500)
|
self.set_rc(3, 1500)
|
||||||
tstart = self.get_sim_time()
|
tstart = self.get_sim_time()
|
||||||
while True:
|
while True:
|
||||||
|
if self.get_sim_time() - tstart > timeout:
|
||||||
|
raise AutoTestTimeoutException("Vehicle did not disarm after mission")
|
||||||
if not self.armed():
|
if not self.armed():
|
||||||
break
|
break
|
||||||
remaining = self.get_sim_time() - tstart
|
|
||||||
if remaining <= 0:
|
|
||||||
raise AutoTestTimeoutException("Vehicle did not disarm after mission")
|
|
||||||
self.delay_sim_time(1)
|
self.delay_sim_time(1)
|
||||||
self.progress("Lowering rotor speed")
|
self.progress("Lowering rotor speed")
|
||||||
self.set_rc(8, 1000)
|
self.set_rc(8, 1000)
|
||||||
|
Loading…
Reference in New Issue
Block a user