7import QGroundControl.Controls
8import QGroundControl.VehicleSetup
9import QGroundControl.FactControls
14 required property var joystick
16 readonly property var _joystickSettings: joystick.settings
17 readonly property real _margins: ScreenTools.defaultFontPixelHeight / 2
20 Layout.fillWidth: true
21 Layout.leftMargin: _margins
22 Layout.rightMargin: _margins
26 Layout.fillWidth: true
27 text: qsTr("Center stick is zero throttle")
28 fact: _joystickSettings.throttleModeCenterZero
33 Layout.fillWidth: true
34 text: qsTr("Spring loaded throttle smoothing")
35 fact: _joystickSettings.throttleSmoothing
36 visible: fact.visible && _joystickSettings.throttleModeCenterZero.rawValue
40 Layout.fillWidth: true
41 label: fact.shortDescription
42 fact: _joystickSettings.exponentialPct
46 Layout.fillWidth: true
47 text: qsTr("Negative Thrust")
48 fact: _joystickSettings.negativeThrust
49 visible: globals.activeVehicle.supports.negativeThrust && fact.visible
53 id: advancedSettingsCheckbox
54 Layout.fillWidth: true
55 text: qsTr("Advanced Settings")
60 Layout.fillWidth: true
61 heading: qsTr("Advanced Settings")
62 visible: advancedSettingsCheckbox.checked
65 Layout.fillWidth: true
66 text: qsTr("Circle Correction")
67 fact: _joystickSettings.circleCorrection
72 Layout.fillWidth: true
73 label: fact.shortDescription
74 fact: _joystickSettings.axisFrequencyHz
79 Layout.fillWidth: true
80 label: fact.shortDescription
81 fact: _joystickSettings.buttonFrequencyHz
86 Layout.preferredWidth: parent.width
88 visible: advancedSettingsCheckbox.checked
91 text: qsTr("Deadband")
92 fact: _joystickSettings.useDeadband
97 Layout.fillWidth: true
98 font.pointSize: ScreenTools.smallFontPointSize
99 wrapMode: Text.WordWrap
100 text: qsTr("Deadband can be set during the first step of calibration by gently wiggling each axis. ")
105 Layout.fillWidth: true
106 text: qsTr("MANUAL_CONTROL Pitch Extension")
107 fact: _joystickSettings.enableManualControlPitchExtension
108 visible: fact.visible
112 Layout.fillWidth: true
113 text: qsTr("MANUAL_CONTROL Roll Extension")
114 fact: _joystickSettings.enableManualControlRollExtension
115 visible: fact.visible
119 Layout.fillWidth: true
120 text: qsTr("MANUAL_CONTROL Aux1")
121 fact: _joystickSettings.enableManualControlAux1
122 visible: fact.visible
126 Layout.fillWidth: true
127 text: qsTr("MANUAL_CONTROL Aux2")
128 fact: _joystickSettings.enableManualControlAux2
129 visible: fact.visible
133 Layout.fillWidth: true
134 text: qsTr("MANUAL_CONTROL Aux3")
135 fact: _joystickSettings.enableManualControlAux3
136 visible: fact.visible
140 Layout.fillWidth: true
141 text: qsTr("MANUAL_CONTROL Aux4")
142 fact: _joystickSettings.enableManualControlAux4
143 visible: fact.visible
147 Layout.fillWidth: true
148 text: qsTr("MANUAL_CONTROL Aux5")
149 fact: _joystickSettings.enableManualControlAux5
150 visible: fact.visible
154 Layout.fillWidth: true
155 text: qsTr("MANUAL_CONTROL Aux6")
156 fact: _joystickSettings.enableManualControlAux6
157 visible: fact.visible