mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
autotest: expect the new safety switch prearm wording
The pre-arm failure text is now "Safety Switch", matching Copter's arming-time gate, so the lower-case "safety switch" substring no longer matches. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
committed by
Peter Barker
co-authored by
Claude Opus 5
parent
1b36c3df70
commit
d2429f0088
@@ -17160,7 +17160,7 @@ class AutoTestCopter(vehicle_test_suite.TestSuite):
|
||||
self.wait_ready_to_arm()
|
||||
|
||||
self.set_safetyswitch_on()
|
||||
self.assert_prearm_failure("safety switch")
|
||||
self.assert_prearm_failure("Safety Switch")
|
||||
|
||||
self.set_safetyswitch_off()
|
||||
self.wait_ready_to_arm()
|
||||
@@ -17176,7 +17176,7 @@ class AutoTestCopter(vehicle_test_suite.TestSuite):
|
||||
|
||||
# test turning safety on/off using explicit MAVLink command:
|
||||
self.run_cmd_int(mavutil.mavlink.MAV_CMD_DO_SET_SAFETY_SWITCH_STATE, mavutil.mavlink.SAFETY_SWITCH_STATE_SAFE)
|
||||
self.assert_prearm_failure("safety switch")
|
||||
self.assert_prearm_failure("Safety Switch")
|
||||
self.run_cmd_int(mavutil.mavlink.MAV_CMD_DO_SET_SAFETY_SWITCH_STATE, mavutil.mavlink.SAFETY_SWITCH_STATE_DANGEROUS)
|
||||
self.wait_ready_to_arm()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user