Skip to content

Use MAVLink flag value for "unused field" in Rover RC_CHANNELS_SCALED#32299

Open
peterbarker wants to merge 2 commits intoArduPilot:masterfrom
peterbarker:pr-claude/rover-mavlink-message-uint16_t
Open

Use MAVLink flag value for "unused field" in Rover RC_CHANNELS_SCALED#32299
peterbarker wants to merge 2 commits intoArduPilot:masterfrom
peterbarker:pr-claude/rover-mavlink-message-uint16_t

Conversation

@peterbarker
Copy link
Contributor

Summary

Changes how we emit unused fields in this mavlink message to conform to the spec.

Testing (more check increases chance of being merged)

  • Checked by a human programmer
  • Tested in SITL
  • Tested on hardware
  • Logs attached
  • Logs available on request
  • Autotest included

Description

I don't think we should even really be emitting this message... we don't emit the equivalent on other vehicles AND this isn't a servo-output message, it's an RC-input message!

This is the description from the spec:

The scaled values of the RC channels received: (-100%) -10000, (0%) 0, (100%) 10000. Channels that are inactive should be set to UINT16_MAX.

peterbarker and others added 2 commits February 26, 2026 16:48
The MAVLink spec requires inactive channels in RC_CHANNELS_SCALED to be
set to UINT16_MAX. Rover only uses channels 1 and 3, but was sending 0
for the unused channels, which means "centre/neutral" rather than
"inactive".

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…6_MAX

Extend RCOverridesCancel to verify that the inactive channels in
RC_CHANNELS_SCALED (2, 4, 5, 6, 7, 8) are set to UINT16_MAX as
required by the MAVLink spec.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: ReadyForDevCall

Development

Successfully merging this pull request may close these issues.

1 participant