Skip to content

Commit

Permalink
Ephemeris.get() has been reworked to match RINEX specs
Browse files Browse the repository at this point in the history
   * any null field means missing data

Signed-off-by: Guillaume W. Bres <[email protected]>
  • Loading branch information
gwbres committed Aug 7, 2024
1 parent a102e96 commit ba75a0b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions rinex/src/navigation/ephemeris.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1066,10 +1066,7 @@ mod test {
ephemeris.get_orbit_f64("bgdE5aE1"),
Some(-1.303851604462e-08)
);
assert_eq!(
ephemeris.get_orbit_f64("bgdE5bE1"),
Some(0.000000000000e+00)
);
assert!(ephemeris.get_orbit_f64("bgdE5bE1").is_none());

assert_eq!(ephemeris.get_orbit_f64("t_tm"), Some(3.555400000000e+05));
}
Expand Down Expand Up @@ -1127,7 +1124,7 @@ mod test {
ephemeris.get_orbit_f64("svAccuracy"),
Some(0.200000000000e+01)
);
assert_eq!(ephemeris.get_orbit_f64("satH1"), Some(0.0));
assert!(ephemeris.get_orbit_f64("satH1").is_none());
assert_eq!(
ephemeris.get_orbit_f64("tgd1b1b3"),
Some(-0.599999994133e-09)
Expand All @@ -1137,8 +1134,8 @@ mod test {
Some(-0.900000000000e-08)
);

assert!(ephemeris.get_orbit_f64("aodc").is_none());
assert_eq!(ephemeris.get_orbit_f64("t_tm"), Some(0.432000000000e+06));
assert_eq!(ephemeris.get_orbit_f64("aodc"), Some(0.0));
}
#[test]
fn glonass_orbit_v2() {
Expand Down

0 comments on commit ba75a0b

Please sign in to comment.