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
9d0b2295
Commit
9d0b2295
authored
May 12, 2016
by
Beat Küng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GPSProvider: add SIMULATE_RTCM_OUTPUT to enable simulated RTCM output (currently disabled)
parent
c29de21a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
GPSProvider.cc
src/GPS/GPSProvider.cc
+16
-0
No files found.
src/GPS/GPSProvider.cc
View file @
9d0b2295
...
...
@@ -18,9 +18,25 @@
#include "Drivers/src/gps_helper.h"
#include "definitions.h"
//#define SIMULATE_RTCM_OUTPUT //if defined, generate simulated RTCM messages
//additionally make sure to call connectGPS(""), eg. from QGCToolbox.cc
void
GPSProvider
::
run
()
{
#ifdef SIMULATE_RTCM_OUTPUT
const
int
fakeMsgLengths
[
3
]
=
{
30
,
170
,
240
};
uint8_t
*
fakeData
=
new
uint8_t
[
fakeMsgLengths
[
2
]];
while
(
!
_requestStop
)
{
for
(
int
i
=
0
;
i
<
3
;
++
i
)
{
gotRTCMData
((
uint8_t
*
)
fakeData
,
fakeMsgLengths
[
i
]);
msleep
(
4
);
}
msleep
(
100
);
}
delete
[]
fakeData
;
#endif
/* SIMULATE_RTCM_OUTPUT */
if
(
_serial
)
delete
_serial
;
_serial
=
new
QSerialPort
();
...
...
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