-
Is there an existing issue for this problem?
What part of EdgeTX is the focus of this bug?Transmitter firmware Current BehaviorFlicking SH Down then back Up, the logical function doesn't know SH is back Up. Toggling SF up and down won't activate the sticky (correct behaviour) but if i switch SH Down and back Up, SF will toggle the sticky upon next Down. For clarity: the purpose of this function is a dual-switch arming system, with 1 switch to disarm. L01: Expected BehaviorThe sticky should only be activated when both SF and SH are Down at the SAME TIME. when i hold SH Down AND SF Down, the sticky should activate Steps To ReproduceToggle HS Up Sticky activates even though HS was down. Version2.7.1 TransmitterRadiomaster TX16S / TX16SMK2 Anything else?both 2.7.1 and 2.8 RC3... Same behaviour. Reversing the switches in the function produces a different wrong behaviour: L01: This no longer "sticks". It behaves like an AND and not a Sticky These Sticky function is sticky where it shouldn't be, and non-sticky where it should be! This work-around behaves correctly, but requires 2 functions: L01: L02: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
I beleive this to be intended behaviour (it is certainly hereditary as OpenTX Sticky logic switch behaves exactly the same) and thus a misunderstanding of the Sticky / Set Reset latch behaviour, not a bug. By pulling SH down, you have met the Set condition. However, I would also have have thought that the AND switch condition needed to be valid at the same time, this then presents a problem... does the AND switch need to be valid for set AND reset? Which really should be yes. Thus, in your scenario, you will never get it to reset, as SF would need to be in the down position for the reset condition to be processed (which is SFup). 😆 To see the sticky switch logic properly, you really need to use two different switches for V1 and V2 if you're going to AND it with another switch... i.e. set V1 to SF down, and V2 to SA down, and AND to SH down. You'll then see that as long as you're holding SH down, when you move SF from up to down, the LS will set/latch. as long as you're holding SH down, the logical switch will stay active, regardless of the position of SF. But, when you move SA down, the LS will be reset. And if you release SH at any time, the logical switch will also be negated. But, it still remembers it's set/reset state, so if you release SH when the logical switch was set, it will become active again when you press SH down again. To achieve what you are after, a two stage LS is the way to do it. The following will trigger L01 when both SH and SF are down. L02 then looks for that, stays set if both switches are down, and gets reset if SF then goes up. So L02 becomes your arming switch. L01: L02: |
Beta Was this translation helpful? Give feedback.
-
Below is the normal operation of the sticky switch. The L3 switch is just there to show the state of the armed switch. Here is the error state. Notice that the armed switch is off but the sticky is still on. This is dangerous if used for arming and I wouldn't trust sticky switches for anything after discovering this. This happens on OpenTX as well but that does not mean it is not a bug. This occurs if the switch is flipped back quickly. |
Beta Was this translation helpful? Give feedback.
-
Set the AND property of L02 to L01. |
Beta Was this translation helpful? Give feedback.
-
I tested your example on my TX16S with L02 AND set to L01 and it behaves exactly as you would expect it to.
Can you explain what you are expecting to happen here? |
Beta Was this translation helpful? Give feedback.
-
This does not happen on my TX16S - what radio are you using? |
Beta Was this translation helpful? Give feedback.
I beleive this to be intended behaviour (it is certainly hereditary as OpenTX Sticky logic switch behaves exactly the same) and thus a misunderstanding of the Sticky / Set Reset latch behaviour, not a bug. By pulling SH down, you have met the Set condition. However, I would also have have thought that the AND switch condition needed to be valid at the same time, this then presents a problem... does the AND switch need to be valid for set AND reset? Which really should be yes. Thus, in your scenario, you will never get it to reset, as SF would need to be in the down position for the reset condition to be processed (which is SFup). 😆
To see the sticky switch logic properly, you really need …