-
-
Notifications
You must be signed in to change notification settings - Fork 151
opentx 2.3 number jumping back to another value #245
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
Comments
sames here, it seems the EVT_MINUS_BREAK is not properly handled. Any value changed with the minus button on a X9D+ (not 2019) has the effect when release the minus button the value returns the previous without any effect. step to reproduce: |
nothing happend till now |
referencing to OTX: opentx/opentx#6852 (comment) |
betaflight event.lua has the following:
removing the OR condition make script to work properly. |
maybe the Horus or Taranis 2019 wheel commands are mixed up with the old button commands the wrong way...? |
can you please test if this in the events.lua fix the issue ? dial = { |
This code was added in #135 by @raphaelcoeffic. Maybe he has got an idea what needs to be done here? |
Yes, it does (I first kept the wrong half of the expression, thinking the ROT_ identifiers were supposed to fit the Taranis 2019 with ROTation wheel... :-)) So dropping the EVT_UP_BREAK, EVT_DOWN_BREAK parts of the OR expression does the trick on my Taranis 2013 X9D+ |
Ok, good. |
Maybe the Taranis 2019 identifiers are pre-initialized to values which make the OR expression go wrong for a Taranis 2013? |
well it seems like opentx 2.3 has wrongly EVT_DOWN_BREAK assigned to minus |
We have discussed this internally with the other opentx devs and it seems that some events have been broken for LUA since 2.3. We will need to look into it. However, it should be time to think about moving to the new virtual events, which should normally bring compatibility with all radios with minimum effort. |
@raphaelcoeffic: You seem to be in the loop on OpenTX development, would you be able to propose a change to move to virtual events? |
Yes, That’s the plan. I don’t have much hardware to test on, but I guess a lot of people are eager to test ;-) |
@raphaelcoeffic: Well, the hope would is that if we move to virtual events that are then mapped to hardware switches / wheels by OpenTX then the mapping to the different hardware types would have been done in OpenTX when they were added. 😉 |
@mikeller that’s the idea, yes. The feature is already in OpenTx, so we need to adapt the key mapping, and that’s it. |
I just reviewed the virtual events to make a difference between INC/DEC for changing value, and PREV/NEXT for navigating the UI, since x9d(+) has those reversed. Should be merged shortly And yes @mikeller , thats exactly why those virtual events where created, so that LUA developper don't have to worry about that mess :) |
@3djc: I like that. Can you alert us / propose a change when the fix for X9D+ has been merged - I think a considerable part of our users are using this hardware. |
@mikeller @raphaelcoeffic Here it is: opentx/opentx#6890 (thank you @3djc !) :-) |
first PoC for the virtual events: #250 |
@raphaelcoeffic, @3djc: Any chance that this is fixed in 2.3.1? |
no, not resolved yet on X9D+ ... #255 |
for example you want to switch vtx channel....... number is jumping to the value before or you hold the plus/minus button for a long time
The text was updated successfully, but these errors were encountered: