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
3import QtQuick.Layouts
4
5import QGroundControl
6import QGroundControl.FactControls
7import QGroundControl.Controls
8
9/*
10 IMPORTANT NOTE: Any changes made here must also be made to SensorsComponentSummary.qml
11*/
12
13Item {
14 implicitWidth: mainLayout.implicitWidth
15 implicitHeight: mainLayout.implicitHeight
16 width: parent.width // grows when Loader is wider than implicitWidth
17
18 FactPanelController { id: controller; }
19
20 property Fact mag0IdFact: controller.getParameterFact(-1, "CAL_MAG0_ID")
21 property Fact gyro0IdFact: controller.getParameterFact(-1, "CAL_GYRO0_ID")
22 property Fact accel0IdFact: controller.getParameterFact(-1, "CAL_ACC0_ID")
23
24 ColumnLayout {
25 id: mainLayout
26 width: parent.width
27 spacing: 0
28
29 VehicleSummaryRow {
30 labelText: qsTr("Compass")
31 valueText: mag0IdFact ? (mag0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
32 }
33
34 VehicleSummaryRow {
35 labelText: qsTr("Gyro")
36 valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
37 }
38
39 VehicleSummaryRow {
40 labelText: qsTr("Accelerometer")
41 valueText: accel0IdFact ? (accel0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
42 }
43
44 VehicleSummaryRow {
45 labelText: qsTr("Airspeed")
46 visible: vehicleComponent.airspeedCalSupported
47 valueText: vehicleComponent.airspeedCalRequired ? qsTr("Setup required") : qsTr("Ready")
48 }
49 }
50}