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
58c0e8e4
Commit
58c0e8e4
authored
4 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
filter snapshot filters ranges and satellites too
parent
23174a20
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!20
new tag
,
!19
new tag
,
!17
Resolve "TDCP batch implementation"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/gnss_utils/snapshot.h
+18
-2
18 additions, 2 deletions
include/gnss_utils/snapshot.h
with
18 additions
and
2 deletions
include/gnss_utils/snapshot.h
+
18
−
2
View file @
58c0e8e4
...
@@ -133,7 +133,15 @@ inline std::set<int> Snapshot::filterObservations(const std::set<int>& disc
...
@@ -133,7 +133,15 @@ inline std::set<int> Snapshot::filterObservations(const std::set<int>& disc
const
bool
&
check_carrier_phase
,
const
bool
&
check_carrier_phase
,
const
Options
&
opt
)
const
Options
&
opt
)
{
{
return
obs_
->
filter
(
sats_
,
discarded_sats
,
x_r
,
check_code
,
check_carrier_phase
,
opt
);
std
::
set
<
int
>
filtered_sats
=
obs_
->
filter
(
sats_
,
discarded_sats
,
x_r
,
check_code
,
check_carrier_phase
,
opt
);
for
(
auto
sat
:
filtered_sats
)
{
sats_
.
erase
(
sat
);
ranges_
.
erase
(
sat
);
}
return
filtered_sats
;
}
}
inline
std
::
set
<
int
>
Snapshot
::
filterObservations
(
const
std
::
set
<
int
>&
discarded_sats
,
inline
std
::
set
<
int
>
Snapshot
::
filterObservations
(
const
std
::
set
<
int
>&
discarded_sats
,
...
@@ -142,7 +150,15 @@ inline std::set<int> Snapshot::filterObservations(const std::set<int>& discarde
...
@@ -142,7 +150,15 @@ inline std::set<int> Snapshot::filterObservations(const std::set<int>& discarde
const
bool
&
check_carrier_phase
,
const
bool
&
check_carrier_phase
,
const
Options
&
opt
)
const
Options
&
opt
)
{
{
return
obs_
->
filter
(
sats_
,
discarded_sats
,
azels
,
check_code
,
check_carrier_phase
,
opt
);
std
::
set
<
int
>
filtered_sats
=
obs_
->
filter
(
sats_
,
discarded_sats
,
azels
,
check_code
,
check_carrier_phase
,
opt
);
for
(
auto
sat
:
filtered_sats
)
{
sats_
.
erase
(
sat
);
ranges_
.
erase
(
sat
);
}
return
filtered_sats
;
}
}
inline
const
Ranges
&
Snapshot
::
getRanges
()
const
inline
const
Ranges
&
Snapshot
::
getRanges
()
const
...
...
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