QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMFlightModesComponentSummary.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 var _vehicle: controller.vehicle
14 property bool _roverFirmware: controller.parameterExists(-1, "MODE1") // This catches all usage of ArduRover firmware vehicle types: Rover, Boat...
15
16 property Fact flightMode1: controller.getParameterFact(-1, _roverFirmware ? "MODE1" : "FLTMODE1")
17 property Fact flightMode2: controller.getParameterFact(-1, _roverFirmware ? "MODE2" : "FLTMODE2")
18 property Fact flightMode3: controller.getParameterFact(-1, _roverFirmware ? "MODE3" : "FLTMODE3")
19 property Fact flightMode4: controller.getParameterFact(-1, _roverFirmware ? "MODE4" : "FLTMODE4")
20 property Fact flightMode5: controller.getParameterFact(-1, _roverFirmware ? "MODE5" : "FLTMODE5")
21 property Fact flightMode6: controller.getParameterFact(-1, _roverFirmware ? "MODE6" : "FLTMODE6")
22
23 Column {
24 anchors.fill: parent
25
26 VehicleSummaryRow {
27 labelText: qsTr("Flight Mode 1")
28 valueText: flightMode1.enumStringValue
29 }
30
31 VehicleSummaryRow {
32 labelText: qsTr("Flight Mode 2")
33 valueText: flightMode2.enumStringValue
34 }
35
36 VehicleSummaryRow {
37 labelText: qsTr("Flight Mode 3")
38 valueText: flightMode3.enumStringValue
39 }
40
41 VehicleSummaryRow {
42 labelText: qsTr("Flight Mode 4")
43 valueText: flightMode4.enumStringValue
44 }
45
46 VehicleSummaryRow {
47 labelText: qsTr("Flight Mode 5")
48 valueText: flightMode5.enumStringValue
49 }
50
51 VehicleSummaryRow {
52 labelText: qsTr("Flight Mode 6")
53 valueText: flightMode6.enumStringValue
54 }
55 }
56}