edgetx icon indicating copy to clipboard operation
edgetx copied to clipboard

Logical switches not saved

Open pierrotm777 opened this issue 2 years ago • 2 comments
trafficstars

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

pierrotm777 avatar Jun 01 '23 11:06 pierrotm777

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 avatar Jun 01 '23 11:06 pierrotm777

@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?

pfeerick avatar Mar 05 '24 00:03 pfeerick

This issue has been closed due to no activity in over four weeks after having been marked as closure pending.

github-actions[bot] avatar May 06 '24 02:05 github-actions[bot]

Sorry, I haven't seen your answer. I think it's an edgetx issue. I try to do some new tests this morning.

pierrotm777 avatar May 06 '24 05:05 pierrotm777

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: TSwitch

I send you my actual widget code. Thanks for your help ! Pierre

pierrotm777 avatar May 06 '24 08:05 pierrotm777

TSwitch.zip

pierrotm777 avatar May 06 '24 08:05 pierrotm777

With what version of EdgeTX are you testing?

pfeerick avatar May 06 '24 08:05 pfeerick

And those LS don't make any sense, a>x requires two operand

3djc avatar May 06 '24 08:05 3djc

Ok, how can i configure and use this widget ? Do i need to update the libgui.lua library ?

pierrotm777 avatar May 06 '24 09:05 pierrotm777

Maybe you should see that with said widget author ?

3djc avatar May 06 '24 09:05 3djc

I have followed this video from the author. https://www.youtube.com/watch?v=PFdHdTHB5m0

pierrotm777 avatar May 06 '24 09:05 pierrotm777

I test the version 2.10.0 RC4

pierrotm777 avatar May 06 '24 09:05 pierrotm777

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.

pfeerick avatar May 06 '24 09:05 pfeerick

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.

pierrotm777 avatar May 06 '24 10:05 pierrotm777

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.

pfeerick avatar May 06 '24 10:05 pfeerick

Ok, Thanks you :-) I need to work on this a bit.

pierrotm777 avatar May 06 '24 10:05 pierrotm777