QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
TelemetryRSSIIndicator.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Layouts
3
4import QGroundControl
5import QGroundControl.Controls
6
7//-------------------------------------------------------------------------
8//-- Telemetry RSSI
9Item {
10 id: control
11 anchors.top: parent.top
12 anchors.bottom: parent.bottom
13 width: telemIcon.width * 1.1
14
15 property bool showIndicator: _hasTelemetry
16
17 property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
18 property bool _hasTelemetry: _activeVehicle.telemetryLRSSI !== 0
19
20 QGCColoredImage {
21 id: telemIcon
22 anchors.top: parent.top
23 anchors.bottom: parent.bottom
24 width: height
25 sourceSize.height: height
26 source: "/qmlimages/TelemRSSI.svg"
27 fillMode: Image.PreserveAspectFit
28 color: qgcPal.buttonText
29 }
30
31 MouseArea {
32 anchors.fill: parent
33 onClicked: mainWindow.showIndicatorDrawer(telemRSSIInfoPage, control)
34 }
35
36 Component {
37 id: telemRSSIInfoPage
38
39 ToolIndicatorPage {
40 showExpand: false
41
42 contentComponent: SettingsGroupLayout {
43 heading: qsTr("Telemetry RSSI Status")
44
45 LabelledLabel {
46 label: qsTr("Local RSSI:")
47 labelText: _activeVehicle.telemetryLRSSI + " " + qsTr("dBm")
48 }
49
50 LabelledLabel {
51 label: qsTr("Remote RSSI:")
52 labelText: _activeVehicle.telemetryRRSSI + " " + qsTr("dBm")
53 }
54
55 LabelledLabel {
56 label: qsTr("RX Errors:")
57 labelText: _activeVehicle.telemetryRXErrors
58 }
59
60 LabelledLabel {
61 label: qsTr("Errors Fixed:")
62 labelText: _activeVehicle.telemetryFixed
63 }
64
65 LabelledLabel {
66 label: qsTr("TX Buffer:")
67 labelText: _activeVehicle.telemetryTXBuffer
68 }
69
70 LabelledLabel {
71 label: qsTr("Local Noise:")
72 labelText: _activeVehicle.telemetryLNoise
73 }
74
75 LabelledLabel {
76 label: qsTr("Remote Noise:")
77 labelText: _activeVehicle.telemetryRNoise
78 }
79 }
80 }
81 }
82}