Improvement: fix actuator test on uavcan ESCs that consume ArmingStatus#26255
Merged
Improvement: fix actuator test on uavcan ESCs that consume ArmingStatus#26255
ArmingStatus#26255Conversation
To stay consistent with kill.
dakejahl
approved these changes
Jan 13, 2026
Contributor
|
Nice clean fix |
Claudio-Chies
approved these changes
Jan 13, 2026
Member
Claudio-Chies
left a comment
There was a problem hiding this comment.
Looks like a sensible approach. Thanks!
TheLukaDragar
pushed a commit
to TheLukaDragar/PX4-Autopilot
that referenced
this pull request
Feb 24, 2026
…tus` (PX4#26255) * uavcan esc: remove unused includes * uavcan arming_status: disarm when terminated To stay consistent with kill. * uavcan: publish armed during actuator tests to make it possible spinning motors
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.
Solved Problem
When using UAVCAN motors that arm themselves by looking at the vehicles armed state published in the
ArmingStatusDroneCAN message:https://github.com/dronecan/DSDL/blob/04e0e818b06c180eb1720fcdf16484d0f12895ee/uavcan/equipment/safety/1100.ArmingStatus.uavcan#L6-L9
then the motors do not spin when using the actuator test sliders in the QGC Actuators tab at the bottom. This is reportedly and I agree with that report bad user experience because the motors seem to not work in tests without feedback but then turn when arming the vehicle.
Solution
This pull request publishes the vehicle to be armed when an actuator test is running such that the ESCs waiting for armed status can be tested.
Changelog Entry
Alternatives
This could be solved at a more global level where the vehicle is considered armed when testing actuators but I didn't want to open that architectural rabbit hole to fix the user experience.
There is no defined test state, only "fully armed" in the DSDL definition.
Test coverage
I tested this with Vertiq ESCs hooked up over uavcan with the default configuration of enabling motor control only when
ArmingStatus.statusreportsSTATUS_FULLY_ARMED.