Repository navigation
Fix RX v9 to v10 upgrade and add servo failsafe11/stretch - #3391
Merged
Merged
Conversation
pkendall64
approved these changes
Nov 8, 2025
mha1
approved these changes
Nov 9, 2025
Member
Author
|
Updated with DShot3D, also fixes update from v9 not bringing somSerial up to date. Tested with 3.3.0 (v7), 3.4.0 (v9). |
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.
Updates the RxConfig upgrade from 3.x.x to master (v9 to v10) so that it doesn't lose all its config along the way. Also adds 2 fields we need for 4.0 while I was doing the conversion, making RX config version 11
Users running on master will have their config "reinterpreted" to these values, meaning their PWM config will be garbled up. I suppose we can add a V11 and make the update migrate the master V10 PWM to this's V10 if we think this is a big deal.Added V11Porblem
Upgrading from 3.x.x to master, you'll note that the receiver goes into bind mode. If you reboot the RX it seems fine, but this is only if you flashed with a bind phrase, and the second reboot copies the bind information because it looks like a new flash. All RX config is lost in the upgrade except 3 fields:
I've updated the structure of the code so it is a bit more obvious that you don't just set the fields that change structure, you have to copy ALL the fields over because the config structure is default apart from what you set. This is not a chaining upgrade system. I've also updated the code in the other upgrades (which were working properly) to be of the same shape so it might be easier to copy paste from them in future versions.
New Fields
Because this has to do the upgrade anyway, I also updated the PWM config structure to support things that are on 4.0 project including #2773 and the failsafe range PR coming in the next day or so. I didn't want to have to validate config upgrades again for both those PRs so they can just rebase onto this and avoid having to figure out the system.