QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
FlightModesComponentSummary.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3
4import QGroundControl
5import QGroundControl.FactControls
6import QGroundControl.Controls
7
8Item {
9 anchors.fill: parent
10
11 FactPanelController { id: controller; }
12
13 property Fact _nullFact
14 property Fact _rcMapFltmode: controller.parameterExists(-1, "RC_MAP_FLTMODE") ? controller.getParameterFact(-1, "RC_MAP_FLTMODE") : _nullFact
15
16 Column {
17 anchors.fill: parent
18 VehicleSummaryRow {
19 labelText: qsTr("Mode switch")
20 valueText: _rcMapFltmode.value === 0 ? qsTr("Setup required") : _rcMapFltmode.enumStringValue
21 }
22 Repeater {
23 model: 6
24 VehicleSummaryRow {
25 labelText: qsTr("Flight Mode %1 ").arg(index + 1)
26 valueText: controller.getParameterFact(-1, "COM_FLTMODE" + (index + 1)).enumStringValue
27 }
28 }
29 }
30}