-
-
Notifications
You must be signed in to change notification settings - Fork 350
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
feat(color,cpn) - Updates to the model telemetry page. #3401
Conversation
…nstance number (default is hidden). Fix issues with page refresh when all sensors deleted. Select closest sensor when a single sensor is deleted. On change, only refresh the sensor list instead of the whole page. The 'showInstanceIds' property is saved to the model file. Update Companion to save/load 'showInstanceIds' in model YAML file. Add checkbox to telemetry edit page.
de86491
to
1a3e287
Compare
@philmoz
|
One more small thing to discuss. For a Black/white radio, the first sensor gets ID1. With a color radio the first sensor gets ID0. I would find it good if this would be handled uniformly. |
Start sensor ID index at 1 to match B&W radios. Keep focus on changed parameter when editing sensor, don't rebuild entire parameter list on change.
I've made the changes suggested by @ParkerEde
|
@elecpower It appears the issues in 2698 are still present. The B&W radios and the telemetry simulator in Companion display the instance ID +1 while color radios uses instance ID. |
Companion adds +1 to the instance ID. Here a further discussion about it. |
Yes, perfect. I've tested it. Good job. Thx |
I've remove the +1 when displaying the instance ID on B&W radios, telemetry settings in Companion and the telemetry simulator. I'm not entirely sure why this was done in the first place - hopefully it doesn't break anything. |
I have no idea either (or why it was +1'd other than apparently for legacy at some point) @3djc What's the history with the instance IDs... what number should be shown? |
Here about the history: |
I've read through all that; but I can't see any explanation as to why it was done. |
Indeed... that's only the what... not the why... i.e. it looks like it originates in OTX 2.3.1, but is that because they were all shifted by one inadvertently in an earlier version? Were they always displayed wrong, and that was just keeping the behaviour the same? etc. But, thank you for the cross-reference ;) |
With the latest commit, the instaceIDs in Companion are the same as in the radio/simulator. But now the telemetry simulator does not work anymore. Tested with Horus X10 Express profil |
Also need to consider are there any data conversion considerations or do we force sensor rediscover and recreate all manually configured sensors after this PR is implemented. That is why I asked the question in the referenced PR and Issues. |
The telemetry simulator is working for me on TX16S and QX7. |
directly after starting the simulator, the instance IDs are not read correctly from the model preset and entered in the simulator. If I do this manually, it is okay, as @philmoz also wrote. But if you press the "Reload all Radio Data" button, all sensors are read from the model preset, but then still entered with the InstanceID+1. |
Should be fixed now. |
the reload button now works correctly again. Thx |
Probably not - it looks messy/complex to change. |
tested with QX7 Access Sim. |
@pfeerick I think this PR is ready to go to main. Checked this on Horus X10 Express and QX7ACCESS and also in Companion. |
Tested, TX16s MKII - should be fine, good improvement. Thank you |
Thanks for the checks guys, yes, this also looks good for both EL18 and TX16S. |
This PR take the changes from PR #3150 and adds some additional fixes and cleanup.
I opted to create a new PR instead of trying to work in a fork of a fork :(
I also changed the title for the new option to 'Show instance ID' instead of 'Show sensor ID'.
Changes:
I changed the look for showing the instance ID a bit from PR 3150, to avoid having to change the line height for each row.
All GPS strings should fit without having to adjust font size on portrait layout: