Skip to content
Snippets Groups Projects
Commit 58c0e8e4 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

filter snapshot filters ranges and satellites too

parent 23174a20
No related branches found
No related tags found
3 merge requests!20new tag,!19new tag,!17Resolve "TDCP batch implementation"
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment