QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4TuningComponentSpacecraftVelocity.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Layouts
4
5import QGroundControl
6import QGroundControl.Controls
7import QGroundControl.FactControls
8
9ColumnLayout {
10 property real _availableHeight: availableHeight
11 property real _availableWidth: availableWidth
12
13 PIDTuning {
14 id: pidTuning
15 availableWidth: _availableWidth
16 availableHeight: _availableHeight - pidTuning.y
17
18 property var position: QtObject {
19 property string name: qsTr("Velocity")
20 property string plotTitle: qsTr("Velocity (X axis)")
21 property var plot: [
22 { name: "Response", value: globals.activeVehicle.localPosition.vx.value },
23 { name: "Setpoint", value: globals.activeVehicle.localPositionSetpoint.vx.value }
24 ]
25 property var params: ListModel {
26 ListElement {
27 title: qsTr("Proportional gain (SPC_VEL_P)")
28 description: qsTr("Increase for more responsiveness, reduce if the velocity overshoots (and increasing D does not help).")
29 param: "SPC_VEL_P"
30 min: 0.0
31 max: 20
32 step: 0.05
33 }
34 ListElement {
35 title: qsTr("Differential gain (SPC_VEL_D)")
36 description: qsTr("Damping: increase to reduce overshoots and oscillations, but not higher than really needed.")
37 param: "SPC_VEL_D"
38 min: 0.0
39 max: 3
40 step: 0.05
41 }
42 ListElement {
43 title: qsTr("Integral gain (SPC_VEL_I)")
44 description: qsTr("Increase to reduce steady-state error (e.g. wind)")
45 param: "SPC_VEL_I"
46 min: 0.0
47 max: 10
48 step: 0.2
49 }
50 ListElement {
51 title: qsTr("Integral gain Limiter (SPC_VEL_I_LIM)")
52 description: qsTr("Increase to enlarge the allowed integral compensation.")
53 param: "SPC_VEL_I_LIM"
54 min: 0.0
55 max: 5
56 step: 0.2
57 }
58 }
59 }
60 title: "Velocity"
61 tuningMode: Vehicle.ModeVelocityAndPosition
62 unit: "m/s"
63 axis: [ position]
64 }
65}