-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Support of FlySky NV 14 added #229
Conversation
src/SCRIPTS/BF/ui.lua
Outdated
@@ -313,9 +313,9 @@ function run_ui(event) | |||
elseif currentState == pageStatus.displayMenu then | |||
if event == userEvent.release.exit then | |||
currentState = pageStatus.display | |||
elseif event == userEvent.release.plus or event == userEvent.dial.left then | |||
elseif event == userEvent.release.plus or event == userEvent.dial.right then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes will cause the rotary wheel to work backwards for other TX with a rotary wheel. If the NV14's rotary wheel is mounted backwards then this has to be worked around in a different way (and should probably be fixed in OpenTX, and not in these lua scripts).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes reverted as requested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now.
Now I only need an engineering sample of the NV 14 to test this. 😝
|
Implementation for NV14 added.
Please let me know if my change of events is correct - in my opinion plus is corresponding to right cursor movement. For navigation in NV14 currently we are using trim joysticks in following configuration:
Left:
-Up- Menu
-Down - Telemetry
-Left - PgDwn
-Right - PgUp
-Click - Exit
Right:
-Up - Plus
-Down -Minus
-Left - Rotary left
-Right - Rotary right
-Click - Enter
In next version maybe I will be able to implement touch events.