Skip to content

Commit

Permalink
Fix two way measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Jun 15, 2024
1 parent 9da581c commit 2ff9c05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/od/msr/range_doppler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ impl RangeDoppler {
);
}

let range_km = (aer_t1.range_km - aer_t0.range_km) * 0.5;
let doppler_km_s = (aer_t1.range_rate_km_s - aer_t0.range_rate_km_s) * 0.5;
let range_km = (aer_t1.range_km + aer_t0.range_km) * 0.5;
let doppler_km_s = (aer_t1.range_rate_km_s + aer_t0.range_rate_km_s) * 0.5;

// Time tagged at the realization of this measurement, i.e. at the end of the integration time.
let epoch = aer_t1.epoch + timestamp_noise_s * Unit::Second;
Expand Down
2 changes: 0 additions & 2 deletions src/od/simulator/trackdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ use crate::md::trajectory::Interpolatable;
use crate::od::{Measurement, ODError};
use crate::Orbit;

// TODO(ANISE): TrackignDevice is now FromStr. Does that make sense?!

/// Tracking device simulator.
pub trait TrackingDeviceSim<MsrIn, Msr>: ConfigRepr
where
Expand Down

0 comments on commit 2ff9c05

Please sign in to comment.