-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
refactor(cpn): Support JSON radio hardware definitions #4406
Conversation
7343853
to
7d939db
Compare
5c8d052
to
8eea059
Compare
I'm going to post stuff as I encounter issues, rather than summarise or lump stuff together. I must be one unlucky chump... right out of the bat I hit this (testing will on Windows unless otherwise stated): With TX16S profile selected I get this message no less than three times. Tried with a new profile, same result |
Reading the RM Pocket (is running nightly from a few days ago): Read models OK, upon checking a configured model, inputs had no sources, trim set to no trim (unconfigured so ON in the model). A mixer line with a source was also missing it's source. For reference, attached is the model in question, as it was on the radio, and what Companion exported after reading from the radio. model_from_radio.zip Reading a 2.9 radio and firmware (Jumper T-Lite) seems ok. I've not written as I don't have a backup yet 😆 Reading from a 2.9 radio and firmware (RM TX12MK2), writing to it, and switching to 2.10 firmware results in trashed / NONE input sources. |
@pfeerick unable to load [radio].json 99.9% of the time means the json files were not generated prior to Companion being compiled (see my IMPORTANT NOTE above) |
If there is no json file then all bets are off about what happens subsequently... |
@pfeerick building a libsim will generate its json file as a necessary step |
@pfeerick so I downloaded the Appimage from the last commit and it is missing some radios. Will have to scan the build step to see if I can see why. I know the tx16s works as that is one is tested extensively. |
I guess the issue might come from recent radio that don't have simu defined (waiting for an automatically generated one). We can define a generic one in the meantime |
Looks like one of my clean up/fix-its broke the yaml parser and it was working just fine. Will look at tomorrow. By then the build will have finished so can check the debug messages. |
Yeah just one of those things in the way Boards are handled in the older code and why it needs to be refactored. |
Please clarify, as if the firmware is 2.10 then the radio s 2.10 not 2.9 or am I missing something? |
Fall on sword moment re yaml :-( |
No libsim built for Pocket so that is why it is missing |
When I was saying a 2.9 radio with 2.10 firmware, I was referring to a
radio that existed in 2.9, opposed to a radio added in 2.10.
Only testing with github checks files, not anything built locally.
…On Tue, 16 Jan 2024, 4:53 am Neil Horne, ***@***.***> wrote:
Reading a 2.9 radio with 2.10 firmware (FrSKY X9D+) again has no sources.
Please clarify, as if the firmware is 2.10 then the radio s 2.10 not 2.9
or am I missing something?
—
Reply to this email directly, view it on GitHub
<#4406 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJ66KN5QAAYJ5RSABMFKJ3YOV3LHAVCNFSM6AAAAABAPVDJRWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJSGY2DMNBTG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
So the Build logs show that the TX16S is the last libsim compiled. Very strangely, to me at least, is that the hwdef resource file is being constructed every time before a libsim is compiled and not just once before Companion is compiled as was the plan. This explains why the last compiled libsim in this case TX16S is not added to the Companion hwdef resource file. A CMake guru to the rescue please! |
Ouch... so it looks like each time This should probably have been restricted to the package / installer targets? Since that is what |
This reverts commit fb3a87a.
301ee07
to
fd21d05
Compare
I've tried several combinations of TX16 and Zorro, pulling configs from 2.9 to 2.10 using Companion, and then reading and writing them back, and nothing obvious is jumping out, so I think you banished most of the gremlins ;) Unless there is something outstanding I think its time to merge this, and get more people using it. Then we can also sort out getting at least minimal functionality for the Pocket, etc. (enabling simulator). |
I have no other tweaks I wanted to sneak in so let the beast run free |
Please wait for 2.10.0-rc2, should be this weekend. Known issu per
#4700
…On Mon, 18 Mar 2024, 9:01 pm Yury-MonZon, ***@***.***> wrote:
I'm trying to add my Jumper T20 radio in Companion 2.10-rc1 on Linux. I'm
getting this error:
image.png (view on web)
<https://github.com/EdgeTX/edgetx/assets/16077103/38cb5b7a-d378-403c-8bf0-b174e91f11d3>
Is there anything I'm missing?
—
Reply to this email directly, view it on GitHub
<#4406 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJ66KMWDKXPZDPLDED2SELYY3CQ7AVCNFSM6AAAAABAPVDJRWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBTGYYDSMRYGE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Summary of changes:
Fixes #3592
Fixes #3982
Fixes #4099
Fixes #4507
Fixes #4589
TODO
TODO Post Merge