-
-
Notifications
You must be signed in to change notification settings - Fork 398
feat(bw): allow user setting of SA & SD Led colors on GX12 #6053
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
Conversation
That's certainly something that will make user happy. Ultimately, those (sa/sd) really should be part of customizable switches, looks like we are repeating a crippled down version of those. Would if be better in the long run to allow (dev) reordering of switches list ? |
I can change it to be model level colors and put the UI in the CS section. I don’t think they should take part in groups though. |
Interested in why you think that they should not be part of customizable switches ? SA is in essence no different from SW1 on gx12, and it would open great possibility to have customizable switches out of the traditional "6pos". The most obvious benefit is you could have SA/SD part of a customizable switch group where one could become "arm" and another one "unarm" or things like that |
Because, from a UI perspective, they are completely independent from the buttons in the middle of the radio. |
I still think there would be a lot to be gained from more switches in customizable one. Default config could be exactly as it works now, no user would be troubled by that, and they could learn about the real different possibilities of customizable switches |
That would also mean that the switch name and type for SA and SD would move from the radio settings to the model settings. Potentially breaking existing setups. It would also complicate the switch code - need special case logic everywhere since the name / type are stored differently to other switches. |
IMO it should first and foremost be treated like the ADC filter, model level settings, etc... global setting first, then model level. So if you have not configured it at the model level, the default global settings would take effect, thus no configuration breakage can occur. I know this makes it complex, but it gives the most flexibility of configuration for the end user... if they want it. If you don't, you never change the model level settings, and it behaves just like any other switch. And if you do want it to be, it should be groupable, but this would be done at the model level. I would propose the following. It would be configured at the radio / hardware level, both switch type and colours. When you go to customisable switches, you will see it configured as "global" (for want of a better term). You can override the type and colour, and even group it. Once you do, if you go back into radio / hardware it would be marked as "model" (or something better?) and unconfigurable there. Now, the switches/sources lists gets a bit weird. If globally configured, it needs to go where it belongs by name, like a normal switch. But as soon as you override at the model level, it is formally a customisable switch, so can be grouped there. Clear as mud? |
That would be very complex and require a lot of other changes. I think there are two options:
The second option will potentially break existing setups; but give users more flexible switches. |
I intended to have them as customizable switches, but did not do it by lack of time before radio production was started: it needs a way to re-order switches, as user (rightfully) expect SA before SB, not before SW1 or after SW6 |
That looks like it will require pretty substantial changes to all the switch handling logic. |
Can I suggest, as a first step, these changes:
At least this way the color settings are in the right place, and in future we can look at expanding it so SA / SD work like the other customisable switches. |
Sure. Large changes to the way we parse switches should anyway be reserved to major version |
I've moved the color storage and editing to the model. |
0ee2c03
to
f503f59
Compare
Changed to draft. |
Best thing for *right now* would probably be the initial form. But only if
it doesn't cause an upgrade/migration problem for the future.
…On Fri, 11 Apr 2025, 4:46 pm philmoz, ***@***.***> wrote:
Changed to draft.
It might just be better to do a full unification of the switches,
otherwise there will be even more to clean up if this gets merged.
—
Reply to this email directly, view it on GitHub
<#6053 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJ66KOW3K5YECPNVM767GT2Y5QMPAVCNFSM6AAAAAB2PXRK3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJVHE4TKOJXHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
*philmoz* left a comment (EdgeTX/edgetx#6053)
<#6053 (comment)>
Changed to draft.
It might just be better to do a full unification of the switches,
otherwise there will be even more to clean up if this gets merged.
—
Reply to this email directly, view it on GitHub
<#6053 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJ66KOW3K5YECPNVM767GT2Y5QMPAVCNFSM6AAAAAB2PXRK3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJVHE4TKOJXHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Superseded by #6095 |
Planned to be superseded by #6095
Add the ability for users to set the Led colors of the SA and SD switches on the GX12.
Todo: