Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
671e445d
Commit
671e445d
authored
Dec 17, 2018
by
Willian Galvani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generalSettings.qml: add NMEA udp port selection
parent
156b8231
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
GeneralSettings.qml
src/ui/preferences/GeneralSettings.qml
+21
-1
No files found.
src/ui/preferences/GeneralSettings.qml
View file @
671e445d
...
...
@@ -53,6 +53,9 @@ QGCView {
property
bool
_isTCP
:
_isGst
&&
_videoSource
===
QGroundControl
.
settingsManager
.
videoSettings
.
tcpVideoSource
property
bool
_isMPEGTS
:
_isGst
&&
_videoSource
===
QGroundControl
.
settingsManager
.
videoSettings
.
mpegtsVideoSource
property
string
gpsDisabled
:
"
Disabled
"
property
string
gpsUdpPort
:
"
UDP Port
"
readonly
property
real
_internalWidthRatio
:
0.8
QGCPalette
{
id
:
qgcPal
}
...
...
@@ -505,7 +508,6 @@ QGCView {
Layout.preferredWidth
:
_comboFieldWidth
model
:
ListModel
{
ListElement
{
text
:
"
disabled
"
}
}
onActivated
:
{
...
...
@@ -514,18 +516,26 @@ QGCView {
}
}
Component
.
onCompleted
:
{
model
.
append
({
text
:
gpsDisabled
})
model
.
append
({
text
:
gpsUdpPort
})
for
(
var
i
in
QGroundControl
.
linkManager
.
serialPorts
)
{
nmeaPortCombo
.
model
.
append
({
text
:
QGroundControl
.
linkManager
.
serialPorts
[
i
]})
}
var
index
=
nmeaPortCombo
.
find
(
QGroundControl
.
settingsManager
.
autoConnectSettings
.
autoConnectNmeaPort
.
valueString
);
nmeaPortCombo
.
currentIndex
=
index
;
if
(
QGroundControl
.
linkManager
.
serialPorts
.
length
===
0
)
{
nmeaPortCombo
.
model
.
append
({
text
:
"
Serial <none available>
"
})
}
}
}
QGCLabel
{
visible
:
nmeaPortCombo
.
currentText
!==
gpsUdpPort
&&
nmeaPortCombo
.
currentText
!==
gpsDisabled
text
:
qsTr
(
"
NMEA GPS Baudrate
"
)
}
QGCComboBox
{
visible
:
nmeaPortCombo
.
currentText
!==
gpsUdpPort
&&
nmeaPortCombo
.
currentText
!==
gpsDisabled
id
:
nmeaBaudCombo
Layout.preferredWidth
:
_comboFieldWidth
model
:
[
4800
,
9600
,
19200
,
38400
,
57600
,
115200
]
...
...
@@ -540,6 +550,16 @@ QGCView {
nmeaBaudCombo
.
currentIndex
=
index
;
}
}
QGCLabel
{
text
:
qsTr
(
"
NMEA stream UDP port
"
)
visible
:
nmeaPortCombo
.
currentText
===
gpsUdpPort
}
FactTextField
{
visible
:
nmeaPortCombo
.
currentText
===
gpsUdpPort
Layout.preferredWidth
:
_valueFieldWidth
fact
:
QGroundControl
.
settingsManager
.
autoConnectSettings
.
nmeaUdpPort
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment