QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMFlightSafetyComponentSummarySub.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 Column {
14 anchors.fill: parent
15
16 VehicleSummaryRow {
17 labelText: qsTr("Arming Checks:")
18 valueText: {
19 if (_armingCheck) {
20 return _armingCheck.value & 1 ? qsTr("Enabled") : qsTr("Some disabled")
21 } else if (_armingSkipCheck) {
22 return _armingSkipCheck.value === 0 ? qsTr("Enabled") : qsTr("Some disabled")
23 }
24 return ""
25 }
26
27 // Older firmwares use ARMING_CHECK. Newer firmwares use ARMING_SKIPCHK.
28 property Fact _armingCheck: controller.getParameterFact(-1, "ARMING_CHECK", false /* reportMissing */)
29 property Fact _armingSkipCheck: controller.getParameterFact(-1, "ARMING_SKIPCHK", false /* reportMissing */)
30 }
31 }
32}