5import QGroundControl.Controls
7// Used as the base class control for nboth VehicleGPSIndicator and RTKGPSIndicator
11 width: gpsIndicatorRow.width
12 anchors.top: parent.top
13 anchors.bottom: parent.bottom
15 property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
16 property bool _rtkConnected: QGroundControl.gpsRtk.connected.value
18 QGCPalette { id: qgcPal }
22 anchors.top: parent.top
23 anchors.bottom: parent.bottom
24 spacing: ScreenTools.defaultFontPixelWidth / 2
27 anchors.top: parent.top
28 anchors.bottom: parent.bottom
29 spacing: -ScreenTools.defaultFontPixelWidth / 2
35 color: qgcPal.windowTransparentText
36 anchors.verticalCenter: parent.verticalCenter
37 visible: _rtkConnected
43 anchors.top: parent.top
44 anchors.bottom: parent.bottom
45 source: "/qmlimages/Gps.svg"
46 fillMode: Image.PreserveAspectFit
47 sourceSize.height: height
48 opacity: (_activeVehicle && _activeVehicle.gps.count.value >= 0) ? 1 : 0.5
49 color: qgcPal.windowTransparentText
55 anchors.verticalCenter: parent.verticalCenter
56 visible: _activeVehicle && !isNaN(_activeVehicle.gps.hdop.value)
60 anchors.horizontalCenter: hdopValue.horizontalCenter
61 color: qgcPal.windowTransparentText
62 text: _activeVehicle ? _activeVehicle.gps.count.valueString : ""
67 color: qgcPal.windowTransparentText
68 text: _activeVehicle ? _activeVehicle.gps.hdop.value.toFixed(1) : ""
75 onClicked: mainWindow.showIndicatorDrawer(gpsIndicatorPage, control)