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
b780e9d7
Unverified
Commit
b780e9d7
authored
Jan 21, 2019
by
Don Gagne
Committed by
GitHub
Jan 21, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7145 from MatejFranceskin/pr-septentrio
Support for Septentrio base station RTK
parents
9765125d
240763af
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
9 deletions
+21
-9
qgroundcontrol.pro
qgroundcontrol.pro
+4
-1
Drivers
src/GPS/Drivers
+1
-1
GPSManager.cc
src/GPS/GPSManager.cc
+3
-0
GPSProvider.cc
src/GPS/GPSProvider.cc
+4
-0
GPSProvider.h
src/GPS/GPSProvider.h
+2
-1
definitions.h
src/GPS/definitions.h
+3
-2
USBBoardInfo.json
src/comm/USBBoardInfo.json
+4
-4
No files found.
qgroundcontrol.pro
View file @
b780e9d7
...
...
@@ -405,7 +405,8 @@ HEADERS += \
src
/
api
/
QGCOptions
.
h
\
src
/
api
/
QGCSettings
.
h
\
src
/
api
/
QmlComponentInfo
.
h
\
src
/
comm
/
MavlinkMessagesTimer
.
h
src
/
comm
/
MavlinkMessagesTimer
.
h
\
src
/
GPS
/
Drivers
/
src
/
base_station
.
h
SOURCES
+=
\
src
/
api
/
QGCCorePlugin
.
cc
\
...
...
@@ -665,6 +666,7 @@ HEADERS += \
src
/
GPS
/
Drivers
/
src
/
rtcm
.
h
\
src
/
GPS
/
Drivers
/
src
/
ashtech
.
h
\
src
/
GPS
/
Drivers
/
src
/
ubx
.
h
\
src
/
GPS
/
Drivers
/
src
/
sbf
.
h
\
src
/
GPS
/
GPSManager
.
h
\
src
/
GPS
/
GPSPositionMessage
.
h
\
src
/
GPS
/
GPSProvider
.
h
\
...
...
@@ -853,6 +855,7 @@ SOURCES += \
src
/
GPS
/
Drivers
/
src
/
rtcm
.
cpp
\
src
/
GPS
/
Drivers
/
src
/
ashtech
.
cpp
\
src
/
GPS
/
Drivers
/
src
/
ubx
.
cpp
\
src
/
GPS
/
Drivers
/
src
/
sbf
.
cpp
\
src
/
GPS
/
GPSManager
.
cc
\
src
/
GPS
/
GPSProvider
.
cc
\
src
/
GPS
/
RTCM
/
RTCMMavlink
.
cc
\
...
...
Drivers
@
c0796efe
Subproject commit
8828fb9ad3a2cad568feac2b46de7d6d3af32ca8
Subproject commit
c0796efe5c99582aa877cde136e10fabe21be70a
src/GPS/GPSManager.cc
View file @
b780e9d7
...
...
@@ -34,6 +34,9 @@ void GPSManager::connectGPS(const QString& device, const QString& gps_type)
if
(
gps_type
.
contains
(
"trimble"
,
Qt
::
CaseInsensitive
))
{
type
=
GPSProvider
::
GPSType
::
trimble
;
qCDebug
(
RTKGPSLog
)
<<
"Connecting Trimble device"
;
}
else
if
(
gps_type
.
contains
(
"septentrio"
,
Qt
::
CaseInsensitive
))
{
type
=
GPSProvider
::
GPSType
::
septentrio
;
qCDebug
(
RTKGPSLog
)
<<
"Connecting Septentrio device"
;
}
else
{
type
=
GPSProvider
::
GPSType
::
u_blox
;
qCDebug
(
RTKGPSLog
)
<<
"Connecting U-blox device"
;
...
...
src/GPS/GPSProvider.cc
View file @
b780e9d7
...
...
@@ -18,6 +18,7 @@
#include <QDebug>
#include "Drivers/src/ubx.h"
#include "Drivers/src/sbf.h"
#include "Drivers/src/ashtech.h"
#include "Drivers/src/base_station.h"
#include "definitions.h"
...
...
@@ -81,6 +82,9 @@ void GPSProvider::run()
if
(
_type
==
GPSType
::
trimble
)
{
gpsDriver
=
new
GPSDriverAshtech
(
&
callbackEntry
,
this
,
&
_reportGpsPos
,
_pReportSatInfo
);
baudrate
=
115200
;
}
else
if
(
_type
==
GPSType
::
septentrio
)
{
gpsDriver
=
new
GPSDriverSBF
(
&
callbackEntry
,
this
,
&
_reportGpsPos
,
_pReportSatInfo
,
5
);
baudrate
=
0
;
// auto-configure
}
else
{
gpsDriver
=
new
GPSDriverUBX
(
GPSDriverUBX
::
Interface
::
UART
,
&
callbackEntry
,
this
,
&
_reportGpsPos
,
_pReportSatInfo
);
baudrate
=
0
;
// auto-configure
...
...
src/GPS/GPSProvider.h
View file @
b780e9d7
...
...
@@ -32,7 +32,8 @@ public:
enum
class
GPSType
{
u_blox
,
trimble
trimble
,
septentrio
};
GPSProvider
(
const
QString
&
device
,
...
...
src/GPS/definitions.h
View file @
b780e9d7
...
...
@@ -50,6 +50,8 @@
#include "vehicle_gps_position.h"
#include "satellite_info.h"
#define M_DEG_TO_RAD (M_PI / 180.0)
#define M_RAD_TO_DEG (180.0 / M_PI)
#define M_DEG_TO_RAD_F 0.01745329251994f
#define M_RAD_TO_DEG_F 57.2957795130823f
...
...
@@ -61,11 +63,10 @@ public:
static
void
usleep
(
unsigned
long
usecs
)
{
QThread
::
usleep
(
usecs
);
}
};
static
inline
void
usleep
(
unsigned
long
usecs
)
{
static
inline
void
gps_
usleep
(
unsigned
long
usecs
)
{
Sleeper
::
usleep
(
usecs
);
}
typedef
uint64_t
gps_abstime
;
#include <QDateTime>
...
...
src/comm/USBBoardInfo.json
View file @
b780e9d7
...
...
@@ -29,10 +29,10 @@
{
"vendorID"
:
1027
,
"productID"
:
24577
,
"boardClass"
:
"SiK Radio", "name"
:
"SiK Radio", "comment"
:
"3DR Radio on FTDI"
},
{
"vendorID"
:
4292
,
"productID"
:
60000
,
"boardClass"
:
"SiK Radio", "name"
:
"SiK Radio", "comment"
:
"SILabs Radio"
},
{
"vendorID"
:
5446
,
"productID"
:
424
,
"boardClass"
:
"RTK GPS", "name"
:
"U-blox RTK GPS",
"comment"
:
"U-blox RTK GPS (M8P)"
},
{
"vendorID"
:
5446
,
"productID"
:
425
,
"boardClass"
:
"RTK GPS", "name"
:
"U-blox RTK GPS",
"comment"
:
"U-blox RTK GPS (F9P)"
},
{
"vendorID"
:
1317
,
"productID"
:
42151
,
"boardClass"
:
"RTK GPS", "name"
:
"Trimble RTK GPS",
"comment"
:
"Trimble RTK GPS"
},
{
"vendorID"
:
5446
,
"productID"
:
424
,
"boardClass"
:
"RTK GPS", "name"
:
"U-blox RTK GPS", "comment"
:
"U-blox RTK GPS (M8P)"
},
{
"vendorID"
:
5446
,
"productID"
:
425
,
"boardClass"
:
"RTK GPS", "name"
:
"U-blox RTK GPS", "comment"
:
"U-blox RTK GPS (F9P)"
},
{
"vendorID"
:
1317
,
"productID"
:
42151
,
"boardClass"
:
"RTK GPS", "name"
:
"Trimble RTK GPS", "comment"
:
"Trimble RTK GPS"
},
{
"vendorID"
:
5418
,
"productID"
:
34240
,
"boardClass"
:
"RTK GPS", "name"
:
"Septentrio RTK GPS", "comment"
:
"Septentrio RTK GPS"
},
{
"vendorID"
:
8352
,
"productID"
:
16732
,
"boardClass"
:
"OpenPilot", "name"
:
"OpenPilot OPLink"
},
{
"vendorID"
:
8352
,
"productID"
:
16733
,
"boardClass"
:
"OpenPilot", "name"
:
"OpenPilot CC3D"
},
{
"vendorID"
:
8352
,
"productID"
:
16734
,
"boardClass"
:
"OpenPilot", "name"
:
"OpenPilot Revolution"
},
...
...
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