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
e4f91c4a
Commit
e4f91c4a
authored
Dec 23, 2016
by
Don Gagne
Committed by
GitHub
Dec 23, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4340 from DonLakeFlyer/CommLinksDynamic
Don't show dynamic links in Comm Links
parents
d67ecc8e
0ac444d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
30 deletions
+17
-30
LinkManager.cc
src/comm/LinkManager.cc
+9
-23
GeneralSettings.qml
src/ui/preferences/GeneralSettings.qml
+1
-1
LinkSettings.qml
src/ui/preferences/LinkSettings.qml
+7
-6
No files found.
src/comm/LinkManager.cc
View file @
e4f91c4a
...
...
@@ -47,7 +47,7 @@ const char* LinkManager::_autoconnect3DRRadioKey = "Autoconnect3DRRadio";
const
char
*
LinkManager
::
_autoconnectPX4FlowKey
=
"AutoconnectPX4Flow"
;
const
char
*
LinkManager
::
_autoconnectRTKGPSKey
=
"AutoconnectRTKGPS"
;
const
char
*
LinkManager
::
_autoconnectLibrePilotKey
=
"AutoconnectLibrePilot"
;
const
char
*
LinkManager
::
_defaultUPDLinkName
=
"
Default UDP Link
"
;
const
char
*
LinkManager
::
_defaultUPDLinkName
=
"
UDP Link (AutoConnect)
"
;
const
int
LinkManager
::
_autoconnectUpdateTimerMSecs
=
1000
;
#ifdef Q_OS_WIN
...
...
@@ -353,9 +353,6 @@ void LinkManager::saveLinkConfigurationList()
void
LinkManager
::
loadLinkConfigurationList
()
{
bool
linksChanged
=
false
;
#ifdef QT_DEBUG
bool
mockPresent
=
false
;
#endif
QSettings
settings
;
// Is the group even there?
if
(
settings
.
contains
(
LinkConfiguration
::
settingsRoot
()
+
"/count"
))
{
...
...
@@ -397,7 +394,6 @@ void LinkManager::loadLinkConfigurationList()
#ifdef QT_DEBUG
case
LinkConfiguration
:
:
TypeMock
:
pLink
=
(
LinkConfiguration
*
)
new
MockConfiguration
(
name
);
mockPresent
=
true
;
break
;
#endif
default:
...
...
@@ -425,16 +421,6 @@ void LinkManager::loadLinkConfigurationList()
}
}
}
// Debug buids always add MockLink automatically (if one is not already there)
#ifdef QT_DEBUG
if
(
!
mockPresent
)
{
MockConfiguration
*
pMock
=
new
MockConfiguration
(
"Mock Link PX4"
);
pMock
->
setDynamic
(
true
);
_linkConfigurations
.
append
(
pMock
);
linksChanged
=
true
;
}
#endif
if
(
linksChanged
)
{
emit
linkConfigurationsChanged
();
...
...
@@ -544,47 +530,47 @@ void LinkManager::_updateAutoConnectLinks(void)
case
QGCSerialPortInfo
:
:
BoardTypePX4FMUV2
:
case
QGCSerialPortInfo
:
:
BoardTypePX4FMUV4
:
if
(
_autoconnectPixhawk
)
{
pSerialConfig
=
new
SerialConfiguration
(
QString
(
"Pixhawk on %1
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
pSerialConfig
=
new
SerialConfiguration
(
tr
(
"Pixhawk on %1 (AutoConnect)
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
pSerialConfig
->
setUsbDirect
(
true
);
}
break
;
case
QGCSerialPortInfo
:
:
BoardTypeAeroCore
:
if
(
_autoconnectPixhawk
)
{
pSerialConfig
=
new
SerialConfiguration
(
QString
(
"AeroCore on %1
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
pSerialConfig
=
new
SerialConfiguration
(
tr
(
"AeroCore on %1 (AutoConnect)
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
pSerialConfig
->
setUsbDirect
(
true
);
}
break
;
case
QGCSerialPortInfo
:
:
BoardTypeMINDPXFMUV2
:
if
(
_autoconnectPixhawk
)
{
pSerialConfig
=
new
SerialConfiguration
(
QString
(
"MindPX on %1
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
pSerialConfig
=
new
SerialConfiguration
(
tr
(
"MindPX on %1 (AutoConnect)
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
pSerialConfig
->
setUsbDirect
(
true
);
}
break
;
case
QGCSerialPortInfo
:
:
BoardTypeTAPV1
:
if
(
_autoconnectPixhawk
)
{
pSerialConfig
=
new
SerialConfiguration
(
QString
(
"TAP on %1
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
pSerialConfig
=
new
SerialConfiguration
(
tr
(
"TAP on %1 (AutoConnect)
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
pSerialConfig
->
setUsbDirect
(
true
);
}
break
;
case
QGCSerialPortInfo
:
:
BoardTypeASCV1
:
if
(
_autoconnectPixhawk
)
{
pSerialConfig
=
new
SerialConfiguration
(
QString
(
"ASC on %1
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
pSerialConfig
=
new
SerialConfiguration
(
tr
(
"ASC on %1 (AutoConnect)
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
pSerialConfig
->
setUsbDirect
(
true
);
}
break
;
case
QGCSerialPortInfo
:
:
BoardTypePX4Flow
:
if
(
_autoconnectPX4Flow
)
{
pSerialConfig
=
new
SerialConfiguration
(
QString
(
"PX4Flow on %1
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
pSerialConfig
=
new
SerialConfiguration
(
tr
(
"PX4Flow on %1 (AutoConnect)
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
}
break
;
case
QGCSerialPortInfo
:
:
BoardTypeSikRadio
:
if
(
_autoconnect3DRRadio
)
{
pSerialConfig
=
new
SerialConfiguration
(
QString
(
"SiK Radio on %1
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
pSerialConfig
=
new
SerialConfiguration
(
tr
(
"SiK Radio on %1 (AutoConnect)
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
}
break
;
case
QGCSerialPortInfo
:
:
BoardTypeLibrePilot
:
if
(
_autoconnectLibrePilot
)
{
pSerialConfig
=
new
SerialConfiguration
(
QString
(
"LibrePilot on %1
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
pSerialConfig
=
new
SerialConfiguration
(
tr
(
"LibrePilot on %1 (AutoConnect)
"
).
arg
(
portInfo
.
portName
().
trimmed
()));
}
break
;
#ifndef __mobile__
...
...
src/ui/preferences/GeneralSettings.qml
View file @
e4f91c4a
...
...
@@ -437,7 +437,7 @@ QGCView {
visible
:
QGroundControl
.
corePlugin
.
options
.
enableAutoConnectOptions
QGCLabel
{
id
:
autoConnectLabel
text
:
qsTr
(
"
Auto
c
onnect to the following devices:
"
)
text
:
qsTr
(
"
Auto
C
onnect to the following devices:
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
}
...
...
src/ui/preferences/LinkSettings.qml
View file @
e4f91c4a
...
...
@@ -61,12 +61,13 @@ Rectangle {
spacing
:
ScreenTools
.
defaultFontPixelHeight
/
2
Repeater
{
model
:
QGroundControl
.
linkManager
.
linkConfigurations
delegate
:
QGCButton
{
text
:
object
.
name
width
:
_linkRoot
.
width
*
0.5
exclusiveGroup
:
linkGroup
anchors.horizontalCenter
:
settingsColumn
.
horizontalCenter
delegate
:
QGCButton
{
anchors.horizontalCenter
:
settingsColumn
.
horizontalCenter
width
:
_linkRoot
.
width
*
0.5
text
:
object
.
name
exclusiveGroup
:
linkGroup
visible
:
!
object
.
dynamic
onClicked
:
{
checked
=
true
_currentSelection
=
object
...
...
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