From b358c503fb5f71214b3898cc3088df1a29098a42 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 25 Jul 2024 15:49:22 +1000 Subject: [PATCH] autotest: add test for detection of duplicate AuxSw values --- Tools/autotest/rover.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Tools/autotest/rover.py b/Tools/autotest/rover.py index 108edca97e..f1f2488e56 100644 --- a/Tools/autotest/rover.py +++ b/Tools/autotest/rover.py @@ -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