autotest: add test for detection of duplicate AuxSw values

This commit is contained in:
Peter Barker 2024-07-25 15:49:22 +10:00 committed by Andrew Tridgell
parent 3c1021d208
commit b358c503fb

View File

@ -6725,6 +6725,15 @@ Brakes have negligible effect (with=%0.2fm without=%0.2fm delta=%0.2fm)
self.context_pop()
self.reboot_sitl()
def RCDuplicateOptionsExist(self):
'''ensure duplicate RC option detection works'''
self.wait_ready_to_arm()
self.set_parameters({
"RC6_OPTION": 118,
"RC7_OPTION": 118,
})
self.assert_arm_failure("Duplicate Aux Switch Options")
def tests(self):
'''return list of all tests'''
ret = super(AutoTestRover, self).tests()
@ -6818,6 +6827,7 @@ Brakes have negligible effect (with=%0.2fm without=%0.2fm delta=%0.2fm)
self.FenceFullAndPartialTransfer,
self.MissionPolyEnabledPreArm,
self.OpticalFlow,
self.RCDuplicateOptionsExist,
])
return ret