QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
MavlinkLinkStatus.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Layouts
3
4import QGroundControl
5import QGroundControl.Controls
6
7SettingsGroupLayout {
8 Layout.fillWidth: true
9 heading: qsTr("Link Status (Current Vehicle)")
10
11 property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
12 property string _notConnectedStr: qsTr("Not Connected")
13
14 LabelledLabel {
15 Layout.fillWidth: true
16 label: qsTr("Total messages sent (computed)")
17 labelText: _activeVehicle ? _activeVehicle.mavlinkSentCount : _notConnectedStr
18 }
19
20 LabelledLabel {
21 Layout.fillWidth: true
22 label: qsTr("Total messages received")
23 labelText: _activeVehicle ? _activeVehicle.mavlinkReceivedCount : _notConnectedStr
24 }
25
26 LabelledLabel {
27 Layout.fillWidth: true
28 label: qsTr("Total message loss")
29 labelText: _activeVehicle ? _activeVehicle.mavlinkLossCount : _notConnectedStr
30 }
31
32 LabelledLabel {
33 Layout.fillWidth: true
34 label: qsTr("Loss rate")
35 labelText: _activeVehicle ? _activeVehicle.mavlinkLossPercent.toFixed(0) + '%' : _notConnectedStr
36 }
37
38 LabelledLabel {
39 Layout.fillWidth: true
40 label: qsTr("Signing")
41 labelText: _activeVehicle ? _activeVehicle.signingController.signingStatus.statusText : _notConnectedStr
42 }
43
44 LabelledLabel {
45 Layout.fillWidth: true
46 label: qsTr("Signing key")
47 labelText: _activeVehicle && _activeVehicle.signingController.signingStatus.keyName !== ""
48 ? _activeVehicle.signingController.signingStatus.keyName
49 : qsTr("None")
50 visible: _activeVehicle && _activeVehicle.signingController.signingStatus.enabled
51 }
52
53 LabelledLabel {
54 Layout.fillWidth: true
55 label: qsTr("Signing streams")
56 labelText: _activeVehicle ? _activeVehicle.signingController.signingStatus.streamCount : _notConnectedStr
57 visible: _activeVehicle && _activeVehicle.signingController.signingStatus.enabled
58 }
59}