QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4TuningComponent.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Layouts
4
5import QGroundControl
6import QGroundControl.Controls
7
8ColumnLayout {
9 id: root
10 spacing: ScreenTools.defaultFontPixelWidth / 4
11
12 property var model
13
14 property real _availableHeight: availableHeight
15 property real _availableWidth: availableWidth
16
17 FactPanelController {
18 id: controller
19 }
20
21 QGCGroupBox {
22 id: tuningGroup
23 showDividers: false
24 contentSpacing: 0
25
26 Repeater {
27 model: root.model
28
29 QGCGroupBoxTab {
30 title: buttonText
31 buttonObjectName: "pidTuning_tab_" + buttonText.replace(/ /g, "")
32 }
33 }
34
35 // A single loader tears down the previous tuning page before creating the next one, so the outgoing page
36 // cannot disable the tuning telemetry the incoming page just enabled
37 Loader {
38 id: loader
39 source: root.model.get(tuningGroup.currentIndex).tuningPage
40
41 property bool useAutoTuning: true
42 property real availableWidth: _availableWidth - tuningGroup.contentSideInset * 2
43 property real availableHeight: _availableHeight - tuningGroup.y - tuningGroup.contentTopInset - loader.y - tuningGroup.contentSideInset
44 }
45 }
46}