From 8f1ee3c9316e93edd9822768aba08c15441ffc28 Mon Sep 17 00:00:00 2001 From: khancyr Date: Mon, 21 Aug 2017 11:33:59 +0200 Subject: [PATCH] Joystick: correct throttle UI with negative throttle --- src/VehicleSetup/JoystickConfig.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VehicleSetup/JoystickConfig.qml b/src/VehicleSetup/JoystickConfig.qml index d893ec027..ca9d029de 100644 --- a/src/VehicleSetup/JoystickConfig.qml +++ b/src/VehicleSetup/JoystickConfig.qml @@ -296,7 +296,7 @@ SetupPage { Connections { 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 -- 2.22.0