Tools: modify heli autotest to prevent autorotation test failure

This commit is contained in:
bnsgeyer 2024-04-24 23:21:26 -04:00 committed by Randy Mackay
parent 127f1296de
commit ee5fee268f

View File

@ -362,8 +362,12 @@ class AutoTestHelicopter(AutoTestCopter):
timeout=timeout)
self.context_collect('STATUSTEXT')
self.progress("Triggering autorotate by raising interlock")
self.set_rc(3, 1000)
self.set_rc(8, 1000)
self.wait_statustext("SS Glide Phase", check_context=True)
self.change_mode('STABILIZE')
self.wait_statustext(r"SIM Hit ground at ([0-9.]+) m/s",
check_context=True,
regex=True)
@ -962,6 +966,8 @@ class AutoTestHelicopter(AutoTestCopter):
def tests(self):
'''return list of all tests'''
ret = ([self.AutoRotation, self.ManAutoRotation,])
return ret
ret = vehicle_test_suite.TestSuite.tests(self)
ret.extend([
self.AVCMission,