QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
NtripConnectionSettings.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Layouts
3
4import QGroundControl
5import QGroundControl.Controls
6import QGroundControl.FactControls
7import QGroundControl.GPS.NTRIP
8
9SettingsGroupLayout {
10 id: root
11
12 Layout.fillWidth: true
13 heading: qsTr("Connection")
14 visible: _ntrip.userVisible
15
16 property var _ntrip: QGroundControl.settingsManager.ntripSettings
17 property Fact _enabled: _ntrip.ntripServerConnectEnabled
18 property var _ntripMgr: QGroundControl.ntripManager
19 property bool _isActive: _enabled.rawValue
20 property bool _hasHost: _ntrip.ntripServerHostAddress.rawValue !== ""
21
22 NTRIPConnectionStatusRow {
23 Layout.fillWidth: true
24 ntripManager: root._ntripMgr
25 canConnect: root._isActive || root._hasHost
26 onClicked: root._enabled.rawValue = !root._isActive
27 }
28
29 NTRIPConnectionStatus {
30 Layout.fillWidth: true
31 rtcmMavlink: root._ntripMgr ? root._ntripMgr.rtcmMavlink : null
32 }
33}