QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMRadioComponentSummary.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 mapRollFact: controller.getParameterFact(-1, "RCMAP_ROLL")
14 property Fact mapPitchFact: controller.getParameterFact(-1, "RCMAP_PITCH")
15 property Fact mapYawFact: controller.getParameterFact(-1, "RCMAP_YAW")
16 property Fact mapThrottleFact: controller.getParameterFact(-1, "RCMAP_THROTTLE")
17
18 Column {
19 anchors.fill: parent
20
21 VehicleSummaryRow {
22 labelText: qsTr("Roll")
23 valueText: mapRollFact.value == 0 ? qsTr("Setup required") : qsTr("Channel %1").arg(mapRollFact.valueString)
24 }
25
26 VehicleSummaryRow {
27 labelText: qsTr("Pitch")
28 valueText: mapPitchFact.value == 0 ? qsTr("Setup required") : qsTr("Channel %1").arg(mapPitchFact.valueString)
29 }
30
31 VehicleSummaryRow {
32 labelText: qsTr("Yaw")
33 valueText: mapYawFact.value == 0 ? qsTr("Setup required") : qsTr("Channel %1").arg(mapYawFact.valueString)
34 }
35
36 VehicleSummaryRow {
37 labelText: qsTr("Throttle")
38 valueText: mapThrottleFact.value == 0 ? qsTr("Setup required") : qsTr("Channel %1").arg(mapThrottleFact.valueString)
39 }
40 }
41}