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
c7d11881
Commit
c7d11881
authored
Jan 05, 2018
by
Jacob Walser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove nmea serial port for mobile builds
parent
55737026
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
LinkManager.cc
src/comm/LinkManager.cc
+9
-2
LinkManager.h
src/comm/LinkManager.h
+2
-0
GeneralSettings.qml
src/ui/preferences/GeneralSettings.qml
+1
-1
No files found.
src/comm/LinkManager.cc
View file @
c7d11881
...
...
@@ -21,13 +21,13 @@
#include "UDPLink.h"
#include "TCPLink.h"
#include "SettingsManager.h"
#include "PositionManager.h"
#ifdef QGC_ENABLE_BLUETOOTH
#include "BluetoothLink.h"
#endif
#ifndef __mobile__
#include "GPSManager.h"
#include "PositionManager.h"
#endif
QGC_LOGGING_CATEGORY
(
LinkManagerLog
,
"LinkManagerLog"
)
...
...
@@ -51,7 +51,9 @@ LinkManager::LinkManager(QGCApplication* app, QGCToolbox* toolbox)
,
_mavlinkChannelsUsedBitMask
(
1
)
// We never use channel 0 to avoid sequence numbering problems
,
_autoConnectSettings
(
NULL
)
,
_mavlinkProtocol
(
NULL
)
#ifndef __mobile__
,
_nmeaPort
(
NULL
)
#endif
{
qmlRegisterUncreatableType
<
LinkManager
>
(
"QGroundControl"
,
1
,
0
,
"LinkManager"
,
"Reference only"
);
qmlRegisterUncreatableType
<
LinkConfiguration
>
(
"QGroundControl"
,
1
,
0
,
"LinkConfiguration"
,
"Reference only"
);
...
...
@@ -66,7 +68,9 @@ LinkManager::LinkManager(QGCApplication* app, QGCToolbox* toolbox)
LinkManager
::~
LinkManager
()
{
#ifndef __mobile__
delete
_nmeaPort
;
#endif
}
void
LinkManager
::
setToolbox
(
QGCToolbox
*
toolbox
)
...
...
@@ -502,6 +506,7 @@ void LinkManager::_updateAutoConnectLinks(void)
QGCSerialPortInfo
::
BoardType_t
boardType
;
QString
boardName
;
#ifndef __mobile__
if
(
portInfo
.
systemLocation
().
trimmed
()
==
_autoConnectSettings
->
autoConnectNmeaPort
()
->
cookedValueString
())
{
if
(
portInfo
.
systemLocation
().
trimmed
()
!=
_nmeaDeviceName
)
{
_nmeaDeviceName
=
portInfo
.
systemLocation
().
trimmed
();
...
...
@@ -525,7 +530,9 @@ void LinkManager::_updateAutoConnectLinks(void)
_nmeaPort
->
setBaudRate
(
_nmeaBaud
);
qCDebug
(
LinkManagerLog
)
<<
"Configuring nmea baudrate"
<<
_nmeaBaud
;
}
}
else
if
(
portInfo
.
getBoardInfo
(
boardType
,
boardName
))
{
}
else
#endif
if
(
portInfo
.
getBoardInfo
(
boardType
,
boardName
))
{
if
(
portInfo
.
isBootloader
())
{
// Don't connect to bootloader
qCDebug
(
LinkManagerLog
)
<<
"Waiting for bootloader to finish"
<<
portInfo
.
systemLocation
();
...
...
src/comm/LinkManager.h
View file @
c7d11881
...
...
@@ -235,9 +235,11 @@ private:
static
const
int
_autoconnectConnectDelayMSecs
;
// NMEA GPS device for GCS position
#ifndef __mobile__
QString
_nmeaDeviceName
;
QSerialPort
*
_nmeaPort
;
uint32_t
_nmeaBaud
;
#endif
};
#endif
src/ui/preferences/GeneralSettings.qml
View file @
c7d11881
...
...
@@ -493,7 +493,7 @@ QGCView {
Row
{
width
:
parent
.
width
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
!
ScreenTools
.
is
iOS
visible
:
!
ScreenTools
.
is
Mobile
&&
QGroundControl
.
settingsManager
.
autoConnectSettings
.
autoConnectNmeaPort
.
visible
&&
QGroundControl
.
settingsManager
.
autoConnectSettings
.
autoConnectNmeaBaud
.
visible
...
...
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