QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GcsPositionStatus.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Layouts
3
4import QGroundControl
5import QGroundControl.Controls
6
7SettingsGroupLayout {
8 heading: qsTr("GCS Position")
9 visible: _gcsPosition.isValid
10
11 property var _gcsPosition: QGroundControl.qgcPositionManger.gcsPosition
12 property real _gcsHDOP: QGroundControl.qgcPositionManger.gcsPositionHorizontalAccuracy
13
14 LabelledLabel {
15 Layout.fillWidth: true
16 label: qsTr("Latitude")
17 labelText: _gcsPosition.isValid ? _gcsPosition.latitude.toFixed(7) : qsTr("N/A")
18 }
19
20 LabelledLabel {
21 Layout.fillWidth: true
22 label: qsTr("Longitude")
23 labelText: _gcsPosition.isValid ? _gcsPosition.longitude.toFixed(7) : qsTr("N/A")
24 }
25
26 LabelledLabel {
27 Layout.fillWidth: true
28 label: qsTr("HDOP")
29 labelText: _gcsHDOP > 0 ? _gcsHDOP.toFixed(1) + " m" : qsTr("N/A")
30 }
31}