edgetx
edgetx copied to clipboard
Logical switches not saved
Is there an existing issue for this problem?
- [X] I have searched the existing issues
What part of EdgeTX is the focus of this bug?
Transmitter firmware
Current Behavior
The logical switches from L30 to L37 are not saved. L40 to 47 are saved
Expected Behavior
When i shut down tmy Tx16s Mk2, these logical switches are not saved. I use a compiled 2.9 firmware with the 1/6/2023 sources
Steps To Reproduce
Never saved after power down
Version
Nightly (Please give date/commit below)
Transmitter
Radiomaster TX16S / TX16SMK2
Operating System (OS)
Windows
OS Version
Windows
Anything else?
No response
I have found than the issue is when i use the TSwitch widget . I use 2x8 buttons, with one witch use the L30 to L37 logicals switches and the second witch use the L40 to L47 logicals switchs. When i open the first 8 buttons that erase the logical switches L30-37. When i open the second 8 buttons that erase the logical switches L40-47.
@pierrotm777 So are you saying that the issue is actually a bug in https://github.com/Ziege-One/TSwitch or do you believe there to be an issue in EdgeTX still?
This issue has been closed due to no activity in over four weeks after having been marked as closure pending.
Sorry, I haven't seen your answer. I think it's an edgetx issue. I try to do some new tests this morning.
I test again to add Logical Switch and L30 to L37 aren't saved after handset power off.
I use a TX16S MKII .
As i understand i need to defined 8 Logical Switch like that:
I send you my actual widget code. Thanks for your help ! Pierre
With what version of EdgeTX are you testing?
And those LS don't make any sense, a>x requires two operand
Ok, how can i configure and use this widget ? Do i need to update the libgui.lua library ?
Maybe you should see that with said widget author ?
I have followed this video from the author. https://www.youtube.com/watch?v=PFdHdTHB5m0
I test the version 2.10.0 RC4
I don't think that video is correct for the version of the script you are using... it seems it changed to using Sticky logical switches, and no, I don't think you add anything yourself, the widget adds anything if it needs to.
So what is the actual problem you have here? i.e. need precise reproduction steps.
My goal was to use this widget as switch for command a multiswitch device for my boat. But i don't know witch protocol is used behind the receiver. I think to see that with the author for understand how better use it.
So do you want more than one button to control the channel position. i.e. that three buttons could be used to mimic a three position switch? As it is not suited to that in it's current form... it is only good for single channel / momentary controls, as the second parameter is how long it should stay active for on it's own after you press it. i.e. 100ms, 500ms, etc. You would either want some more logic (although you are running out quick as it is consuming 8 logical switches with each instance of the widget) or a widget designed more for that purpose.
I'll close the issue for now, as from what I can tell, it seems to be either an issue with the widget, or with how to use it. Please do let us know if you get anywhere with this, or a response from the author, as I know you have asked before at https://github.com/Ziege-One/TSwitch/issues/1 but didn't get any reply.
Ok, Thanks you :-) I need to work on this a bit.