Skip to content

Commit

Permalink
Fix track midpoint determination, in CGGTTS tracking (#287)
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume W. Bres <[email protected]>
  • Loading branch information
gwbres authored Dec 26, 2024
1 parent fc20d8c commit 48a421a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rinex-cli/src/positioning/cggtts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ use cggtts::{
track::{FitData, GlonassChannel, SVTracker, Scheduler},
};

use hifitime::Unit;

use crate::{
cli::Context,
positioning::{
Expand Down Expand Up @@ -419,7 +421,7 @@ pub fn resolve<'a, 'b, CK: ClockStateProvider, O: OrbitSource>(
let next_release_duration = next_release.unwrap() - *t;
should_release = (next_release_duration <= dominant_sampling_period)
&& (next_release_duration > Duration::ZERO);
trk_midpoint = Some(next_release.unwrap() - trk_duration / 2);
trk_midpoint = Some(next_release.unwrap() - (3.0 * 60.0 * Unit::Second) - trk_duration / 2);
info!("{:?} - {} until next track", t, next_release.unwrap() - *t);
} //.observations()

Expand Down

0 comments on commit 48a421a

Please sign in to comment.