Browse Source

VirtualJoystick: Add centralizeThrottle variable

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 6 years ago
parent
commit
59a5d0a643
  1. 4
      src/FlightDisplay/VirtualJoystick.qml

4
src/FlightDisplay/VirtualJoystick.qml

@ -18,7 +18,7 @@ import QGroundControl.Vehicle 1.0 @@ -18,7 +18,7 @@ import QGroundControl.Vehicle 1.0
Item {
//property bool useLightColors - Must be passed in from loaded
//property bool centralizeThrottle - Must be passed in from loaded
Timer {
interval: 40 // 25Hz, same as real joystick rate
running: QGroundControl.settingsManager.appSettings.virtualJoystick.value && _activeVehicle
@ -39,8 +39,8 @@ Item { @@ -39,8 +39,8 @@ Item {
width: parent.height
height: parent.height
yAxisThrottle: true
yAxisThrottleCentered: centralizeThrottle
lightColors: useLightColors
throttle: true
}
JoystickThumbPad {

Loading…
Cancel
Save