Skip to content

Wait for all channels to have data before marking channel data available - #3645

Merged
pkendall64 merged 1 commit into
ExpressLRS:masterfrom
pkendall64:wait-for-all-channels
Jun 17, 2026
Merged

pkendall64 merged 1 commit into
ExpressLRS:masterfrom
pkendall64:wait-for-all-channels

Conversation

@pkendall64

Copy link
Copy Markdown
Collaborator

Problem

When an RX first starts receiving packets it will populate the channels that are in the packet, the problem here is that a packet does not contain all the channels. So what we see is that the channels that are not in the packet get random data (actually all 1's) which end up being sent to the flight controller.

See #3633

Solution

Before marking the flag that trigger new data available, ensure that none of the channels that the packet rate supports has an "unset" value.

@miggy1952

Copy link
Copy Markdown

Hi Paul,
Not sure what you are suggesting here, please could you please be more specific?

I have tried several different PWM frequencies and it didn’t make any difference.

Meanwhile I have tried the latest 4.01 firmware and it made no difference either.
Cheers!
Derek

@mha1

mha1 commented May 12, 2026

Copy link
Copy Markdown
Contributor

Start Configurator and enable Expert Mode in the settings. Choose GIT PULL REQUEST and select the "Wait for all channels to have data before marking channel data available
#3645" entry. Enter the rest of the data and flash as you usually do.

@mha1 mha1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this, works as advertised.

Before: The very first RC Channels packet with UNSET values for CH1-8

Opening com13 at 420000 baud...
Listening for CRSF packets...

CH01:2047 | CH02:2047 | CH03:2047 | CH04:2047 | CH05:2047 | CH06:2047 | CH07:2047 | CH08:2047 | CH09: 992 | CH10: 992 | CH11: 992 | CH12: 992 | CH13: 992 | CH14: 992 | CH15: 992 | CH16: 992
CH01: 172 | CH02: 988 | CH03: 992 | CH04: 992 | CH05: 172 | CH06: 988 | CH07: 992 | CH08: 992 | CH09: 992 | CH10: 992 | CH11: 992 | CH12: 992 | CH13: 992 | CH14: 992 | CH15: 992 | CH16: 992

After: The very first RC Channels packet with valid channel data for CH1-8, no UNSET vales

Opening com13 at 420000 baud...
Listening for CRSF packets...

CH01: 172 | CH02: 988 | CH03: 992 | CH04: 992 | CH05: 172 | CH06: 990 | CH07: 992 | CH08: 992 | CH09: 992 | CH10: 992 | CH11: 992 | CH12: 992 | CH13: 992 | CH14: 992 | CH15: 992 | CH16: 992
CH01: 172 | CH02: 988 | CH03: 992 | CH04: 992 | CH05: 172 | CH06: 990 | CH07: 992 | CH08: 992 | CH09: 992 | CH10: 992 | CH11: 992 | CH12: 992 | CH13: 992 | CH14: 992 | CH15: 992 | CH16: 992

@pkendall64
pkendall64 merged commit 3fa7030 into ExpressLRS:master Jun 17, 2026
26 checks passed
@pkendall64
pkendall64 deleted the wait-for-all-channels branch June 17, 2026 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Receiver AUX outputs erratic values briefly on connection Chanel 4 goes full deflection on power up but only sometimes

4 participants