Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gnss_utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labrobotica
algorithms
gnss_utils
Commits
4a166e25
Commit
4a166e25
authored
5 years ago
by
Pep Martí Saumell
Browse files
Options
Downloads
Patches
Plain Diff
[modif] novatel_raw inherits from ReceiverRawAbstract
parent
0dc9fee9
No related branches found
No related tags found
3 merge requests
!20
new tag
,
!19
new tag
,
!11
Resolve "Add Novatel raw data stream"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/gnss_utils/receivers/novatel_raw.h
+1
-11
1 addition, 11 deletions
include/gnss_utils/receivers/novatel_raw.h
src/receivers/novatel_raw.cpp
+11
-8
11 additions, 8 deletions
src/receivers/novatel_raw.cpp
with
12 additions
and
19 deletions
include/gnss_utils/receivers/novatel_raw.h
+
1
−
11
View file @
4a166e25
...
@@ -5,23 +5,13 @@
...
@@ -5,23 +5,13 @@
namespace
GnssUtils
namespace
GnssUtils
{
{
class
NovatelRaw
class
NovatelRaw
:
public
ReceiverRawAbstract
{
{
public:
public:
NovatelRaw
();
NovatelRaw
();
~
NovatelRaw
();
~
NovatelRaw
();
RawDataType
addDataStream
(
const
std
::
vector
<
uint8_t
>&
data_stream
);
RawDataType
addDataStream
(
const
std
::
vector
<
uint8_t
>&
data_stream
);
private:
raw_t
raw_data_
;
Observations
obs_
;
Navigation
nav_
;
void
updateObservations
();
RawDataType
raw_data_type_
;
};
};
}
// namespace GnssUtils
}
// namespace GnssUtils
...
...
This diff is collapsed.
Click to expand it.
src/receivers/novatel_raw.cpp
+
11
−
8
View file @
4a166e25
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
using
namespace
GnssUtils
;
using
namespace
GnssUtils
;
NovatelRaw
::
NovatelRaw
()
:
raw_data_type_
(
NO
)
NovatelRaw
::
NovatelRaw
()
{
{
}
}
...
@@ -25,11 +25,14 @@ RawDataType NovatelRaw::addDataStream(const std::vector<uint8_t>& data_stream)
...
@@ -25,11 +25,14 @@ RawDataType NovatelRaw::addDataStream(const std::vector<uint8_t>& data_stream)
case
OBS
:
// Observations
case
OBS
:
// Observations
std
::
cout
<<
"Observations Novatel received!
\n
"
;
std
::
cout
<<
"Observations Novatel received!
\n
"
;
updateObservations
();
// obs_.print();
break
;
break
;
case
NAV_EPH
:
// Ephemeris
case
NAV_EPH
:
// Ephemeris
std
::
cout
<<
"Ephemeris received!
\n
"
;
std
::
cout
<<
"Ephemeris received!
\n
"
;
// std::cout << "Ephemeris copied!\n";
nav_
.
copyEphemeris
(
raw_data_
.
nav
);
nav_
.
print
();
break
;
break
;
case
NAV_SBAS
:
// SBAS
case
NAV_SBAS
:
// SBAS
...
@@ -44,22 +47,22 @@ RawDataType NovatelRaw::addDataStream(const std::vector<uint8_t>& data_stream)
...
@@ -44,22 +47,22 @@ RawDataType NovatelRaw::addDataStream(const std::vector<uint8_t>& data_stream)
// Not handled messages
// Not handled messages
case
NAV_ANT
:
case
NAV_ANT
:
std
::
cout
<<
"
UBlox
Raw: Received antenna postion parameters. Not handled.
\n
"
;
std
::
cout
<<
"
Novatel
Raw: Received antenna postion parameters. Not handled.
\n
"
;
break
;
break
;
case
NAV_DGPS
:
case
NAV_DGPS
:
std
::
cout
<<
"
UBlox
Raw: Received dgps correction. Not handled.
\n
"
;
std
::
cout
<<
"
Novatel
Raw: Received dgps correction. Not handled.
\n
"
;
break
;
break
;
case
NAV_SSR
:
case
NAV_SSR
:
std
::
cout
<<
"
UBlox
Raw: Received ssr message. Not handled.
\n
"
;
std
::
cout
<<
"
Novatel
Raw: Received ssr message. Not handled.
\n
"
;
break
;
break
;
case
NAV_LEX
:
case
NAV_LEX
:
std
::
cout
<<
"
UBlox
Raw: Received lex message. Not handled.
\n
"
;
std
::
cout
<<
"
Novatel
Raw: Received lex message. Not handled.
\n
"
;
break
;
break
;
case
ERROR
:
case
ERROR
:
std
::
cout
<<
"
UBlox
Raw: Received error message. Not handled.
\n
"
;
std
::
cout
<<
"
Novatel
Raw: Received error message. Not handled.
\n
"
;
break
;
break
;
default:
default:
std
::
cout
<<
"
UBlox
Raw: Received unknown message. Not handled.
\n
"
;
std
::
cout
<<
"
Novatel
Raw: Received unknown message. Not handled.
\n
"
;
break
;
break
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment