QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMAirframeComponentSummary.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 APMAirframeComponentController {id: controller; }
12
13 property Fact _frameClass: controller.getParameterFact(-1, "FRAME_CLASS")
14 property Fact _frameType: controller.getParameterFact(-1, "FRAME_TYPE", false)
15 property bool _frameTypeAvailable: controller.parameterExists(-1, "FRAME_TYPE")
16
17 Column {
18 anchors.fill: parent
19
20 VehicleSummaryRow {
21 labelText: qsTr("Frame Class")
22 valueText: _frameClass.enumStringValue
23
24 }
25
26 VehicleSummaryRow {
27 labelText: qsTr("Frame Type")
28 valueText: visible ? _frameType.enumStringValue : ""
29 visible: _frameTypeAvailable
30 }
31
32 VehicleSummaryRow {
33 labelText: qsTr("Firmware Version")
34 valueText: globals.activeVehicle.firmwareMajorVersion == -1 ? qsTr("Unknown") : globals.activeVehicle.firmwareMajorVersion + "." + globals.activeVehicle.firmwareMinorVersion + "." + globals.activeVehicle.firmwarePatchVersion + globals.activeVehicle.firmwareVersionTypeString
35 }
36 }
37}