Commit 8f1ee3c9 authored by khancyr's avatar khancyr

Joystick: correct throttle UI with negative throttle

parent 3051ab71
...@@ -296,7 +296,7 @@ SetupPage { ...@@ -296,7 +296,7 @@ SetupPage {
Connections { Connections {
target: _activeJoystick target: _activeJoystick
onManualControl: throttleLoader.item.axisValue = (-2*throttle+1)*32768.0 onManualControl: throttleLoader.item.axisValue = _activeJoystick.negativeThrust ? -throttle*32768.0 : (-2*throttle+1)*32768.0
} }
} }
} // Column - Attitude Control labels } // Column - Attitude Control labels
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment