QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4TuningComponentSpacecraftAttitude.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 roll: QtObject {
19 property string name: qsTr("Roll")
20 property var plot: [
21 { name: "Response", value: globals.activeVehicle.roll.value },
22 { name: "Setpoint", value: globals.activeVehicle.setpoint.roll.value }
23 ]
24 property var params: ListModel {
25 ListElement {
26 title: qsTr("Proportional Gain (SC_ROLL_P)")
27 description: qsTr("Increase for more responsiveness, reduce if the attitude overshoots.")
28 param: "SC_ROLL_P"
29 min: 1
30 max: 14
31 step: 0.5
32 }
33 }
34 }
35 property var pitch: QtObject {
36 property string name: qsTr("Pitch")
37 property var plot: [
38 { name: "Response", value: globals.activeVehicle.pitch.value },
39 { name: "Setpoint", value: globals.activeVehicle.setpoint.pitch.value }
40 ]
41 property var params: ListModel {
42 ListElement {
43 title: qsTr("Proportional Gain (SC_PITCH_P)")
44 description: qsTr("Increase for more responsiveness, reduce if the attitude overshoots.")
45 param: "SC_PITCH_P"
46 min: 1
47 max: 14
48 step: 0.5
49 }
50 }
51 }
52 property var yaw: QtObject {
53 property string name: qsTr("Yaw")
54 property var plot: [
55 { name: "Response", value: globals.activeVehicle.heading.value },
56 { name: "Setpoint", value: globals.activeVehicle.setpoint.yaw.value }
57 ]
58 property var params: ListModel {
59 ListElement {
60 title: qsTr("Proportional Gain (SC_YAW_P)")
61 description: qsTr("Increase for more responsiveness, reduce if the attitude overshoots (there is only a setpoint when yaw is fixed, i.e. when centering the stick).")
62 param: "SC_YAW_P"
63 min: 1
64 max: 5
65 step: 0.1
66 }
67 }
68 }
69 title: "Attitude"
70 tuningMode: Vehicle.ModeRateAndAttitude
71 unit: "deg"
72 axis: [ roll, pitch, yaw ]
73 showAutoModeChange: true
74 showAutoTuning: false
75 }
76}