GCS_MAVLink: extended manual_control features for AC#32020
Closed
AndKe wants to merge 1 commit intoArduPilot:masterfrom
Closed
GCS_MAVLink: extended manual_control features for AC#32020AndKe wants to merge 1 commit intoArduPilot:masterfrom
AndKe wants to merge 1 commit intoArduPilot:masterfrom
Conversation
Contributor
Author
|
once somebody can review this, I will make changes for the other vehicles too. |
peterbarker
requested changes
Feb 5, 2026
Contributor
peterbarker
left a comment
There was a problem hiding this comment.
This has not been done with reference to ArduSub's "joystick" library - which should be fixed as part of this.
Buttons should not be mapped onto RC channels - they should be mapped onto auxiliary functions if anything.
Most of these patches are not Copter-specific and should not be in the Copter directory.
Comment on lines
+905
to
+911
| // Map AUX1-6 onto RC channels 7-12. | ||
| const int16_t aux_values[6] = { packet.aux1, packet.aux2, packet.aux3, packet.aux4, packet.aux5, packet.aux6 }; | ||
| const uint8_t aux_bits[6] = { EXT_AUX1, EXT_AUX2, EXT_AUX3, EXT_AUX4, EXT_AUX5, EXT_AUX6 }; | ||
| for (uint8_t i = 0; i < 6; i++) { | ||
| const int16_t value = (enabled & aux_bits[i]) ? aux_values[i] : INT16_MAX; | ||
| manual_override(rc().channel(6 + i), value, 1000, 2000, tnow); | ||
| } |
Contributor
There was a problem hiding this comment.
This may break existing mixed-input setups.
Contributor
Author
|
yes, I belive this is not the way to go, a joystick on GCS should emit RC_OVERRICE and/or MANUAL_CONTROL as needed instead. Thank you. |
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.
The intention is to make ArduPilot accept/use more than the main 4 axis according to the MAVLink common MANUAL_CONTROL packet.
QGC is about to add free axis mapping to joystick, it will then be useful for gimbal/payload control, not only pitch/yaw/roll/thr.
I've also added some buttons.