AP_Arming: arm_check: always check for estop - #32705
Merged
Merged
Conversation
IamPete1
force-pushed
the
estop-arm-check
branch
from
April 7, 2026 21:35
e9e7f03 to
eb3d5dc
Compare
tridge
approved these changes
Apr 14, 2026
rmackay9
approved these changes
Apr 14, 2026
Member
Author
|
On the call we realized a nastier problem which this also fixes. If you have arm / estop setup and arm another way you end up with the vehicle armed but with estop on. If you then remember your estop switch and flick it the vehicle comes to life suddenly at whatever throttle position you happened to be at. |
Contributor
|
This has been included in 4.7.0-beta4. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If someone setups the arm - emergency stop aux function and you arm another way its very easy to get confused as to why the motors don't work.
In the pre-arm checks we don't check for estop if the arm-estop function is assigned because it would always fail.
ardupilot/libraries/AP_Arming/AP_Arming.cpp
Lines 1661 to 1669 in ecb7568
In the arm check itself that aux function will no longer be in the e-stop position if it has been used to trigger the arming attempt. If your trying to arm some other way you will see the message.
Classification & Testing (check all that apply and add your own)
Tested in SITL that the arm - emergency stop aux function still works as expected but now we get the arm check if arming using another method.