RC_Channel: understand ignore-receiver when reading rc inputs#32488
Merged
rmackay9 merged 3 commits intoArduPilot:masterfrom Mar 31, 2026
Merged
RC_Channel: understand ignore-receiver when reading rc inputs#32488rmackay9 merged 3 commits intoArduPilot:masterfrom
rmackay9 merged 3 commits intoArduPilot:masterfrom
Conversation
peterbarker
commented
Mar 19, 2026
9237013 to
61280a7
Compare
Contributor
Author
|
I broke this in #26164 So a regression from 4.5.7 I've added the autotest I used to bisect it. |
44a8846 to
0aa4f5c
Compare
b76de98 to
b4c6d65
Compare
throttle-down won't have an effect. Throttle-up *might* have an effect, so we need to protect against that. We want to leave the vehicle at zero throttle after the RTL IMO, and zero is a better choice than middle while we *are* doing RTL throttle-down won't have an effect. Throttle-up *might* have an effect, so we need to protect against that. We want to leave the vehicle at zero throttle after the RTL IMO, and zero is a reasonable choice while we *are* doing RTL.
previously this option only gated whether we read data from the HAL into our radio_in state. but that would mean read_input would still return true, even if we didn't actually read data from the receiver into the radio state. And that means everything in (e.g. Copter::read_radio thinks we have good channel data when we absolutely do not, meaning has_valid_input is true. Which is bad.
b4c6d65 to
334a456
Compare
Contributor
Author
|
The test modifications all pass before this change - with the exception of the test added in this PR: peterbarker#34 |
tridge
approved these changes
Mar 31, 2026
rmackay9
approved these changes
Mar 31, 2026
9 tasks
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.
Summary
Corrects problem where we consume invalid channel values when throttle-failsafe is ignored but we also have RC_OPTIONS set to 1 to ignore the receiver
Testing (more checks increases chance of being merged)
Description
previously this option only gated whether we read data from the HAL into our radio_in state.
but that would mean read_input would still return true, even if we didn't actually read data from the receiver into the radio state. And that means everything in (e.g. Copter::read_radio thinks we have good channel data when we absolutely do not, meaning has_valid_input is true. Which is bad.