Skip to content

Auto configure Rx OTA protocol from the Tx - #2994

Merged
JyeSmith merged 11 commits into
masterfrom
Auto-configure-Rx-OTA-protocol-from-the-Tx
Nov 11, 2024
Merged

JyeSmith merged 11 commits into
masterfrom
Auto-configure-Rx-OTA-protocol-from-the-Tx

Conversation

@JyeSmith

Copy link
Copy Markdown
Member

This is bit of a POC for changing the rx OTA protocol via the Tx.

This then opens up the question of should the Tx lua also contain the Protocol1 list and be used to configure the Rx?

Or should only OTA changes be sent, and the serial output config left on the Rx? In which case is another config setting required to restore the original non-mavlink protocol when changing back to Normal from Mavlink? Or is defaulting back the crsf ok?

@JyeSmith JyeSmith added V4.0 🍔 OTA Breaking Change This PR is incompatitble with master labels Oct 19, 2024
Comment thread src/src/rx_main.cpp Resolved
@wvarty

wvarty commented Oct 20, 2024

Copy link
Copy Markdown
Collaborator

We (devs) change this setting a lot, but I bet most users would set the RX serial config once, and then rarely ever again... I think defaulting back to CRSF when switching from MAVLink back to Normal is probs fine...

@JyeSmith
JyeSmith marked this pull request as ready for review November 9, 2024 03:25
@JyeSmith
JyeSmith requested a review from wvarty November 9, 2024 03:25
Comment thread src/src/rx_main.cpp Resolved

@pkendall64 pkendall64 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think otaProtocol can be 1 bit ,unless you are thinking we may have other protocols in future.
In which case we should have enum defined as well and the code for checking on the RX and sending on the RX.
Also, otaProtocol on the TX side is set from config.linkMode, which is 2 bits, so I think we need some consistency here.

@JyeSmith

Copy link
Copy Markdown
Member Author

I think otaProtocol can be 1 bit ,unless you are thinking we may have other protocols in future.

Changed to 2 bits. I want to future proof a little while the bits are still unused.

@JyeSmith
JyeSmith merged commit 56d2d9a into master Nov 11, 2024
@JyeSmith
JyeSmith deleted the Auto-configure-Rx-OTA-protocol-from-the-Tx branch November 11, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OTA Breaking Change This PR is incompatitble with master V4.0 🍔

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants