QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SensorsComponentSummaryFixedWing.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3
4import QGroundControl
5import QGroundControl.FactControls
6import QGroundControl.Controls
7
8/*
9 IMPORTANT NOTE: Any changes made here must also be made to SensorsComponentSummary.qml
10*/
11
12Item {
13 anchors.fill: parent
14
15 FactPanelController { id: controller; }
16
17 property Fact mag0IdFact: controller.getParameterFact(-1, "CAL_MAG0_ID")
18 property Fact gyro0IdFact: controller.getParameterFact(-1, "CAL_GYRO0_ID")
19 property Fact accel0IdFact: controller.getParameterFact(-1, "CAL_ACC0_ID")
20
21 Column {
22 anchors.fill: parent
23
24 VehicleSummaryRow {
25 labelText: qsTr("Compass:")
26 valueText: mag0IdFact ? (mag0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
27 }
28
29 VehicleSummaryRow {
30 labelText: qsTr("Gyro:")
31 valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
32 }
33
34 VehicleSummaryRow {
35 labelText: qsTr("Accelerometer:")
36 valueText: accel0IdFact ? (accel0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
37 }
38
39 VehicleSummaryRow {
40 labelText: qsTr("Airspeed:")
41 visible: vehicleComponent.airspeedCalSupported
42 valueText: vehicleComponent.airspeedCalRequired ? qsTr("Setup required") : qsTr("Ready")
43 }
44 }
45}