QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4TuningComponentSpacecraftPosition.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("Position")
20 property string plotTitle: qsTr("Position (X direction)")
21 property var plot: [
22 { name: "Response", value: globals.activeVehicle.localPosition.x.value },
23 { name: "Setpoint", value: globals.activeVehicle.localPositionSetpoint.x.value }
24 ]
25 property var params: ListModel {
26 ListElement {
27 title: qsTr("Proportional gain (SPC_POS_P)")
28 description: qsTr("Increase for more responsiveness, reduce if the position overshoots.")
29 param: "SPC_POS_P"
30 min: 0
31 max: 20
32 step: 0.05
33 }
34 ListElement {
35 title: qsTr("Integral gain (SPC_POS_I)")
36 description: qsTr("Increase for faster convergence to zero steady-state error.")
37 param: "SPC_POS_I"
38 min: 0
39 max: 2
40 step: 0.001
41 }
42 ListElement {
43 title: qsTr("Integral gain limit (SPC_POS_I_LIM)")
44 description: qsTr("Anti-windup limit for the position controller integral component.")
45 param: "SPC_POS_I_LIM"
46 min: 0
47 max: 2
48 step: 0.001
49 }
50 ListElement {
51 title: qsTr("Position Error Limit (SPC_VEL_MAX)")
52 description: qsTr("Increase for more responsiveness, reduce if the position overshoots.")
53 param: "SPC_VEL_MAX"
54 min: 0
55 max: 20
56 step: 0.05
57 }
58 }
59 }
60 title: "Position"
61 tuningMode: Vehicle.ModeVelocityAndPosition
62 unit: "m"
63 axis: [ position ]
64 chartDisplaySec: 50
65 }
66}