Skip to content

Commit

Permalink
autotest: add basic test that heli autotune succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Apr 12, 2024
1 parent 478e47d commit ebfa36c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Tools/autotest/helicopter.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,14 @@ def PIDNotches(self):
if ex is not None:
raise ex

def AUTOTUNE(self):
'''test AutoTune doesn't fall out of sky'''
self.takeoff(mode='GUIDED')
self.change_mode('LOITER') # can't GUIDED -> AUTOTUNE
self.change_mode('AUTOTUNE')
self.wait_statustext('AutoTune: Success', timeout=300)
self.land_and_disarm()

def tests(self):
'''return list of all tests'''
ret = vehicle_test_suite.TestSuite.tests(self)
Expand All @@ -859,6 +867,7 @@ def tests(self):
self.TurbineStart,
self.NastyMission,
self.PIDNotches,
self.AUTOTUNE,
])
return ret

Expand Down

0 comments on commit ebfa36c

Please sign in to comment.