autotest: autotest autotune without filtering updates

This commit is contained in:
Andy Piper 2023-07-19 14:10:03 +01:00 committed by Andrew Tridgell
parent 8f644f473c
commit a47009e103
1 changed files with 13 additions and 0 deletions

View File

@ -3913,6 +3913,18 @@ class AutoTestPlane(AutoTest):
self.change_mode('FBWA')
self.fly_home_land_and_disarm(timeout=tdelta+240)
def AutotuneFiltering(self):
'''Test AutoTune mode with filter updates disabled'''
self.set_parameters({
"AUTOTUNE_OPTIONS": 3,
# some filtering is required for autotune to complete
"RLL_RATE_FLTD": 10,
"PTCH_RATE_FLTD": 10,
"RLL_RATE_FLTT": 20,
"PTCH_RATE_FLTT": 20,
})
self.AUTOTUNE()
def LandingDrift(self):
'''Circuit with baro drift'''
self.customise_SITL_commandline([], wipe=True)
@ -4731,6 +4743,7 @@ class AutoTestPlane(AutoTest):
self.DCMFallback,
self.MAVFTP,
self.AUTOTUNE,
self.AutotuneFiltering,
self.MegaSquirt,
self.MSP_DJI,
self.SpeedToFly,