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
1ddf8123
Commit
1ddf8123
authored
6 years ago
by
Pep Martí Saumell
Browse files
Options
Downloads
Patches
Plain Diff
Improving the structure
parent
53a87d9b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/gnss_utils.h
+23
-10
23 additions, 10 deletions
include/gnss_utils.h
src/gnss_utils.cpp
+19
-1
19 additions, 1 deletion
src/gnss_utils.cpp
with
42 additions
and
11 deletions
include/gnss_utils.h
+
23
−
10
View file @
1ddf8123
...
...
@@ -15,17 +15,24 @@ namespace GNSSUtils
class
Observation
{
public:
obsd_t
GetRTKLIBObj
();
// Constructor
Observation
();
// Constructor overloaded
Observation
(
int
sat
,
int
rcv
);
// Destructor
~
Observation
();
// Public API
private:
gtime_t
_time
;
// Receiver sampling time
unsigned
char
_sat
;
// Satellite number
unsigned
char
_rcv
;
// Receiver number
std
::
vector
<
char
>
_SNR
;
std
::
vector
<
char
>
_LLI
;
std
::
vector
<
char
>
_code
;
int
_sat
;
// Satellite number
int
_rcv
;
// Receiver number
std
::
vector
<
int
>
_SNR
;
std
::
vector
<
int
>
_LLI
;
std
::
vector
<
int
>
_code
;
std
::
vector
<
double
>
_L
;
std
::
vector
<
double
>
_P
;
std
::
vector
<
double
>
_D
;
...
...
@@ -34,12 +41,18 @@ namespace GNSSUtils
class
Receiver
{
public:
// Constructor & Destructor
Receiver
();
~
Receiver
();
std
::
shared_ptr
<
double
>
_obsPtr
;
void
UpdateObservation
();
private:
// Public objects
// Public methods
void
clearObservations
();
void
pushObservation
(
GNSSUtils
::
Observation
obs
);
private:
std
::
vector
<
Observation
>
_obsVector
;
};
}
...
...
This diff is collapsed.
Click to expand it.
src/gnss_utils.cpp
+
19
−
1
View file @
1ddf8123
...
...
@@ -2,16 +2,29 @@
using
namespace
GNSSUtils
;
// XXX: Separate Classes into different .cpp .h files
// OBSERVATION METHODS
Observation
::
Observation
()
{
}
Observation
::
Observation
(
int
sat
,
int
rcv
)
{
this
->
_sat
=
sat
;
this
->
_rcv
=
rcv
;
}
Observation
::~
Observation
()
{
//
}
// RECEIVER METHODS
Receiver
::
Receiver
()
{
...
...
@@ -22,7 +35,12 @@ Receiver::~Receiver()
}
void
Receiver
::
Update
Observation
()
void
Receiver
::
clear
Observation
s
()
{
_obsVector
.
clear
();
}
void
Receiver
::
pushObservation
(
GNSSUtils
::
Observation
obs
)
{
_obsVector
.
push_back
(
obs
);
}
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