Skip to content

Commit a59ad5e

Browse files
authored
Propose current list of tracked SV (#43)
Signed-off-by: Guillaume W. Bres <[email protected]>
1 parent d7c9745 commit a59ad5e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/tracker/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ pub use fit::{FitError, Observation, SVTracker};
55
pub use fitted::FittedData;
66

77
use crate::prelude::{Duration, SV};
8-
use std::collections::HashMap;
8+
9+
use std::{collections::hash_map::Keys, collections::HashMap};
910

1011
/// [SkyTracker] is used to track all Satellite vehicles
1112
/// in sight during a common view period and eventually collect CGGTTS.
@@ -26,6 +27,11 @@ impl SkyTracker {
2627
}
2728
}
2829

30+
/// List of Satellites currently tracker
31+
pub fn satellites(&self) -> Keys<'_, SV, SVTracker> {
32+
self.trackers.keys()
33+
}
34+
2935
/// Define a [SkyTracker] with desired observation gap tolerance.
3036
pub fn with_gap_tolerance(&self, tolerance: Duration) -> Self {
3137
let mut s = self.clone();

0 commit comments

Comments
 (0)