QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PowerComponentSummary.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 property string _naString: qsTr("N/A")
12
13 FactPanelController { id: controller; }
14
15 BatteryParams {
16 id: battParams
17 controller: controller
18 batteryIndex: 1
19 }
20
21 Column {
22 anchors.fill: parent
23
24 VehicleSummaryRow {
25 labelText: qsTr("Battery Source")
26 valueText: battParams.battSource.enumStringValue
27 }
28
29 VehicleSummaryRow {
30 labelText: qsTr("Battery Full")
31 valueText: battParams.battHighVoltAvailable ? battParams.battHighVolt.valueString + " " + battParams.battHighVolt.units : _naString
32 }
33
34 VehicleSummaryRow {
35 labelText: qsTr("Battery Empty")
36 valueText: battParams.battLowVoltAvailable ? battParams.battLowVolt.valueString + " " + battParams.battLowVolt.units : _naString
37 }
38
39 VehicleSummaryRow {
40 labelText: qsTr("Number of Cells")
41 valueText: battParams.battNumCellsAvailable ? battParams.battNumCells.valueString : _naString
42 }
43 }
44}