-
-
Notifications
You must be signed in to change notification settings - Fork 448
feat: add ability to set source for backlight / brightness and volume controls #6684
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
base: main
Are you sure you want to change the base?
Conversation
|
@elecpower When you have some time could you look at the companion side please. It needs to be updated to limit the backlight control to only select Pots, Sliders or Switches, |
|
I think this does go against the whole logic, where things are done throuht SF. Now it is a settings, a GF, a SF, for people to understand what happens , it becomes a nightware. What happens if you usually don't need to use the pot, but this new model needs it for a gyro gain for example ? |
|
Looks like #2256 won't be needed anymore then, and the issues it addressed can be moved to here... |
No, it gives a mechanism to it without using GF or SF. If you need something more advanced, you use that instead.
Same could be said for Brightness GF... i.e. you wouldn't configure it globally, or you use it for both. |
|
The commit above fixes the source list. The dynamic update part is a wip |
|
This PR #6684 is interesting and could be helpful to band-aid the primary problems in SF backlight I observe since introduced in EdgeTX ~v2.6.x. But this PR still does not provide a complete solution to allow setting both an alternate backlight brightness and control... Please consider/investigate issue #5851 as well. Thank you & Happy to test :-) |
|
As I poke with this a bit I find myself agreed with @3djc. We are not talking about a menu navigation button, this is normal user controls and they should be left for user to configure in SF / GF. |
Thanks for that. A couple of things:
|
6678ca2 to
d77e84e
Compare
Noted and will incorporate |
|
Custom function switches not listed correctly and will be addressed as part of the larger issue |
874fede to
a646cea
Compare
|
TODO: add flex switches to list |
|
@philmoz back to you for testing |
Looks good - thank you. |
ccb7bd7 to
be52513
Compare
|
For consistency then, shouldn't the same apply to audio and variometer volumes ? |
One step at a time. |
b527393 to
d77d486
Compare
|
Added audio volume control as well. |
|
Looks like I need to rename the source item model to a generic name. I'm open to suggestions. |
ControlSourceItemModel |
d8f5b83 to
c0e5e5e
Compare
|
Testing in Ubuntu and results are inconsistent. Used the latest PR state and setting nothing in Companion. |
|
Simulator and Companion crash after pressing Select model on any other model from Manage Models. All were created in Companion with defaults. |
|
In Companion setting backlight source and a backlight GF. |
|
In the sim, if I add a second GF the warning displays and after I delete the second GF it disappears. |
|
@elecpower can you send your .etx file please. |
|
This is from the terminal window
Created a new models and settings file. Added 3 models with defaults. Saved to this file Just change the extension back to etx. |
|
Closing Companion also causes a crash at same location in the libsim 900900ms: CHILD_DELETED tile[0] |
|
The warning is only shown if the SF/GF override is active, not just defined. |
Hmmm. No crash on MacOS. |
So as it is a runtime conditional check there is no point me adding a warning to Companion. Dumb question time. Why bother with a warning at all. If I set backlight in radio settings and months later add a backlight SF/GF then unless I consciously go into backlight settings and the SF/GF is active I wont know the radio setting is being overridden? We don't display a warning in Outputs when an Override Channel SF is enabled. There are likely more stupid setting combinations that can be configured to effectively override other settings. A comment that has been around since OTX is that there is often not just one way of achieving the same result. |
"Enabled" might be the better word - if the SF/GF is defined, but disabled, no warning. Defined and enabled, then warning.
We do on the channel monitor (and outputs edit screen on colorlcd) though... there is an icon shown on both B&W and colourlcd if channel override is in effect for a given channel... If it weren't for the fact you can do things multiple ways, a warning wouldn't be necessary, to prompt you that it is really configured somewhere else... |
|
Ok so accept your points. The code to the effort of checking for active backlight. Why not display no message when no GF/SF actions, 'Overridden by GF/SF" when active and "Overrides in GF/SF" when inactive? |
|
I have no real opinion either way, but would suggest it adds clutter to show something when SF/GF is disabled (and thus effectively non-existent). I'll leave that for you, Phil and co. to figure out. 🤭 |
|
I just don't like the idea that a SF/GF is lurking in the shadows with no indicator. |
|
I'm seeing the same on Linux Mint here, but not on MacOS or Windows. |
29997ed to
ed899ab
Compare
|
Are there current & working instruction for setting up build on Ubuntu? |
|
Think the only build instructions are for ubuntu 20.04 and haven't been updated since... I would just install docker so can use a variation of |
|
Ubuntu 20 won't work as it has no Qt6. |
|
Crash should be fixed by PR #6825. I will rebase this when that PR is merged. |
25ef5fe to
a7e297e
Compare
a7e297e to
7547128
Compare
7547128 to
26d8121
Compare







Set a Pot, Slider or Switch to control brightness without using a special / global function.
If a Backlight special / global is defined it will take precedence over this new radio setting.
TODO: