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
39b8f1d3
Commit
39b8f1d3
authored
5 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
added reserve function for observations
parent
99725ec1
No related branches found
No related tags found
2 merge requests
!20
new tag
,
!19
new tag
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/gnss_utils/observations.h
+3
-3
3 additions, 3 deletions
include/gnss_utils/observations.h
src/observations.cpp
+5
-0
5 additions, 0 deletions
src/observations.cpp
with
8 additions
and
3 deletions
include/gnss_utils/observations.h
+
3
−
3
View file @
39b8f1d3
#ifndef OBSEVATIONS_H
#ifndef OBSE
R
VATIONS_H
#define OBSERVATIONS_H
#include
<vector>
#include
<iostream>
#include
<memory>
extern
"C"
{
#include
"rtklib.h"
...
...
@@ -32,6 +30,8 @@ namespace GNSSUtils
void
pushObservation
(
obsd_t
obs
);
void
reserveObservations
(
unsigned
int
n
);
const
std
::
vector
<
obsd_t
>
&
getObservations
()
const
;
...
...
This diff is collapsed.
Click to expand it.
src/observations.cpp
+
5
−
0
View file @
39b8f1d3
...
...
@@ -23,6 +23,11 @@ void Observations::pushObservation(obsd_t obs)
this
->
obs_vector_
.
push_back
(
obs
);
}
void
Observations
::
reserveObservations
(
unsigned
int
n
)
{
this
->
obs_vector_
.
reserve
(
n
);
}
const
std
::
vector
<
obsd_t
>
&
Observations
::
getObservations
()
const
{
return
this
->
obs_vector_
;
...
...
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