autotest: add test we don't die with bad RC channel for roll

This commit is contained in:
Peter Barker 2024-09-08 00:16:37 +10:00 committed by Peter Barker
parent 1f61b64fbe
commit d6386cc1fd
1 changed files with 5 additions and 0 deletions

View File

@ -6151,6 +6151,10 @@ class AutoTestPlane(vehicle_test_suite.TestSuite):
self.fly_home_land_and_disarm(timeout=400) self.fly_home_land_and_disarm(timeout=400)
def BadRollChannelDefined(self):
'''ensure we don't die with a bad Roll channel defined'''
self.set_parameter("RCMAP_ROLL", 17)
def tests(self): def tests(self):
'''return list of all tests''' '''return list of all tests'''
ret = super(AutoTestPlane, self).tests() ret = super(AutoTestPlane, self).tests()
@ -6284,6 +6288,7 @@ class AutoTestPlane(vehicle_test_suite.TestSuite):
self.ForceArm, self.ForceArm,
self.MAV_CMD_EXTERNAL_WIND_ESTIMATE, self.MAV_CMD_EXTERNAL_WIND_ESTIMATE,
self.GliderPullup, self.GliderPullup,
self.BadRollChannelDefined,
]) ])
return ret return ret