-
-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
companion v2.10-rc3 loses switch settings from v2.9.2 file #4898
Comments
Switches SE and SF are not included in the radio switch settings you provided and default to None for the radio, Note: They do default to 2 Positions for T-Pro v2. Steps to fix:
Since Companion and radio firmware share the same default radio configuration this is likely why radio firmware is mirroring the same 'missing' switch behaviour (I do not have a T-Pro to test). |
For me it is displaying Tmr1. The label you have configured for the 1st button/switch is TML |
@elecpower I started finding this problem when trying to move from v1 -> v2, but the steps I list both companions are configured for t-pro v1 (ignore the profile NAME, sorry) |
@elecpower I misspoke in my first report, edited now. I'm pressing the TML button to tell me the battery telemetry and TMR1 timer |
Thanks for the screenshots |
I made a video. I assure you it is the same file (I even included md5 sums for you) it was too large to attach so I had to upload it here https://imgur.com/a/ENFGINZ |
I can replicate your video using v2.9.4. The major ADC rewrite for 2.10 has flushed out the bug. This raises the question, how is the 2.9.2 firmware handling reading SE thru SJ? Also does v2.10 firmware handle SW1 thru SW6 correctly? |
@elecpower internaly, the function switches are designated as real switches, then mapped to function switches edgetx/radio/src/targets/taranis/hal.h Line 738 in f0a50bd
It still is the case in 2.10, but the yaml has been made clearer. edgetx/radio/src/targets/taranis/hal.h Line 1047 in 60119ae
To make things a bit more confusing, 2 extra optional switches that where not possible to use in 2.9 branch, have been added to TPro |
@3djc that might be ok for the firmware but Companion is reading the generated tpro.json file which does not include the mapping of the function switch eg SW1 to the real switch v2.9 SE or v2.10 SG and with the addition of the 2 extra option switches it makes things even worse when parsing the yaml.
|
Well you can compute it for 2.10. In this case, SWF is the last before SW1, so SW1 is also SWG. I guess we could also add it to the json file. Unsure how the mapping is done for earlier versions. Is there some mapping table between versions? |
It needs to be in the json file so there is no need for Companion to have per radio rules which are prone to get out of sync with the firmware. This was one of the objectives of using shared json files.
I'm going to have to:
|
We can include in the json file the name of the switch for 2.10, albeit I have a feeling this is useless in this case, since 2.10 don't use those. The issue remains for changes to existing radios over time. That's not the first time something like this happens. There has to be specific code written for it. Not too sure if trying to put this in a json file would be the answer, it would have to be manually generated anyway |
The PR negates the need for inclusion in 2.10. |
Just commented the PR, I think there has been a misunderstanding there (#4902 (comment)) i believe the only issue here is the addition of the two extra switches |
thanks so much for all your work on this, it's much appreciated. |
Is there an existing issue for this problem?
What part of EdgeTX is the focus of this bug?
Companion
Current Behavior
when I load a .etx file from v2.9.2 companion into v2.10-rc3 some of my switches above the screen are lost.
see my first model (bee) Special function SF10 and SF11 - the Switch is missing in 2.10-RC3 and it's listed as TML which is the first button/switch above the screen on my t-pro
both are configured for the t-pro (v1)
here's the .etx file that I renamed to .zip so I can attach it.
t-pro.zip
Expected Behavior
loding the v2.9.2 file into v2.10-rc3 should preserve all my settings.
it was this thread on discord that led me here.
Steps To Reproduce
load attached file into v2.10 rc 3 companion
see how switches don't work.
Version
Other (Please specify below)
Transmitter
Jumper T-Pro
Operating System (OS)
macOS
OS Version
Sonoma
Anything else?
this might be in the core edgeTX and not just companion since I just plugged my v2.9.2 jumper t-pro v1 sd card into my jumpter t-pro v2 running 2.10-rc3 and the buttons stopped working there too with no companion involved either.
The text was updated successfully, but these errors were encountered: