Skip to content

Commit 6390e17

Browse files
authored
Remove Temporal Masking (#316)
* temporal masking, at least applied to Navigation Ephemerides is dangerous. We might propose it, either differently or through special options. SV/Constellation filtering is already more than enough Signed-off-by: Guillaume W. Bres <[email protected]>
1 parent 0049deb commit 6390e17

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/navigation/mask.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ use crate::{navigation::Record, prelude::Constellation};
44

55
fn mask_mut_geq(rec: &mut Record, target: &FilterItem) {
66
match target {
7-
FilterItem::EpochItem(epoch) => {
8-
rec.retain(|k, _| k.epoch >= *epoch);
9-
},
107
FilterItem::SvItem(items) => {
118
rec.retain(|k, _| {
129
let mut retained = true;
@@ -26,9 +23,6 @@ fn mask_mut_geq(rec: &mut Record, target: &FilterItem) {
2623

2724
fn mask_mut_equal(rec: &mut Record, target: &FilterItem) {
2825
match target {
29-
FilterItem::EpochItem(epoch) => {
30-
rec.retain(|k, _| k.epoch == *epoch);
31-
},
3226
FilterItem::SvItem(filter) => {
3327
rec.retain(|k, _| filter.contains(&k.sv));
3428
},
@@ -51,9 +45,6 @@ fn mask_mut_equal(rec: &mut Record, target: &FilterItem) {
5145

5246
fn mask_mut_ineq(rec: &mut Record, target: &FilterItem) {
5347
match target {
54-
FilterItem::EpochItem(epoch) => {
55-
rec.retain(|k, _| k.epoch != *epoch);
56-
},
5748
FilterItem::SvItem(filter) => {
5849
rec.retain(|k, _| !filter.contains(&k.sv));
5950
},
@@ -76,9 +67,6 @@ fn mask_mut_ineq(rec: &mut Record, target: &FilterItem) {
7667

7768
fn mask_mut_leq(rec: &mut Record, target: &FilterItem) {
7869
match target {
79-
FilterItem::EpochItem(epoch) => {
80-
rec.retain(|k, _| k.epoch <= *epoch);
81-
},
8270
FilterItem::SvItem(items) => {
8371
rec.retain(|k, _| {
8472
let mut retained = true;
@@ -98,9 +86,6 @@ fn mask_mut_leq(rec: &mut Record, target: &FilterItem) {
9886

9987
fn mask_mut_lt(rec: &mut Record, target: &FilterItem) {
10088
match target {
101-
FilterItem::EpochItem(epoch) => {
102-
rec.retain(|k, _| k.epoch < *epoch);
103-
},
10489
FilterItem::SvItem(items) => {
10590
rec.retain(|k, _| {
10691
let mut retained = true;
@@ -120,9 +105,6 @@ fn mask_mut_lt(rec: &mut Record, target: &FilterItem) {
120105

121106
fn mask_mut_gt(rec: &mut Record, target: &FilterItem) {
122107
match target {
123-
FilterItem::EpochItem(epoch) => {
124-
rec.retain(|k, _| k.epoch > *epoch);
125-
},
126108
FilterItem::SvItem(items) => {
127109
rec.retain(|k, _| {
128110
let mut retained = true;

0 commit comments

Comments
 (0)