QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4TuningComponentPlaneAttitude.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("Time constant (FW_R_TC)")
27 description: qsTr("The latency between a roll step input and the achieved setpoint (inverse to a P gain)")
28 param: "FW_R_TC"
29 min: 0.4
30 max: 1.0
31 step: 0.05
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("Time Constant (FW_P_TC)")
44 description: qsTr("The latency between a pitch step input and the achieved setpoint (inverse to a P gain)")
45 param: "FW_P_TC"
46 min: 0.2
47 max: 1.0
48 step: 0.05
49 }
50 }
51 }
52 title: "Attitude"
53 tuningMode: Vehicle.ModeRateAndAttitude
54 unit: "deg"
55 axis: [ roll, pitch ]
56 showAutoModeChange: true
57 showAutoTuning: true
58 }
59}