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
498a8f1c
Commit
498a8f1c
authored
Jan 24, 2017
by
Alexey Bulatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create connected link if set AutoConnect
parent
17eee4a9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
QGCApplication.cc
src/QGCApplication.cc
+3
-0
LinkManager.cc
src/comm/LinkManager.cc
+11
-0
LinkManager.h
src/comm/LinkManager.h
+2
-0
No files found.
src/QGCApplication.cc
View file @
498a8f1c
...
@@ -439,6 +439,9 @@ bool QGCApplication::_initForNormalAppBoot(void)
...
@@ -439,6 +439,9 @@ bool QGCApplication::_initForNormalAppBoot(void)
"Your saved settings have been reset to defaults."
);
"Your saved settings have been reset to defaults."
);
}
}
// Connect links with flag AutoconnectLink
toolbox
()
->
linkManager
()
->
startAutoConnectedLinks
();
if
(
getQGCMapEngine
()
->
wasCacheReset
())
{
if
(
getQGCMapEngine
()
->
wasCacheReset
())
{
showMessage
(
"The Offline Map Cache database has been upgraded. "
showMessage
(
"The Offline Map Cache database has been upgraded. "
"Your old map cache sets have been reset."
);
"Your old map cache sets have been reset."
);
...
...
src/comm/LinkManager.cc
View file @
498a8f1c
...
@@ -990,3 +990,14 @@ QList<LinkInterface*> LinkManager::links(void)
...
@@ -990,3 +990,14 @@ QList<LinkInterface*> LinkManager::links(void)
return
rawLinks
;
return
rawLinks
;
}
}
void
LinkManager
::
startAutoConnectedLinks
(
void
)
{
SharedLinkConfigurationPointer
conf
;
for
(
int
i
=
0
;
i
<
_sharedConfigurations
.
count
();
i
++
)
{
conf
=
_sharedConfigurations
[
i
];
if
(
conf
->
isAutoConnect
())
createConnectedLink
(
conf
);
}
}
src/comm/LinkManager.h
View file @
498a8f1c
...
@@ -171,6 +171,8 @@ public:
...
@@ -171,6 +171,8 @@ public:
SharedLinkConfigurationPointer
addConfiguration
(
LinkConfiguration
*
config
);
SharedLinkConfigurationPointer
addConfiguration
(
LinkConfiguration
*
config
);
void
startAutoConnectedLinks
(
void
);
signals:
signals:
void
autoconnectUDPChanged
(
bool
autoconnect
);
void
autoconnectUDPChanged
(
bool
autoconnect
);
void
autoconnectPixhawkChanged
(
bool
autoconnect
);
void
autoconnectPixhawkChanged
(
bool
autoconnect
);
...
...
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