Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clock offset scaling, especially in sp3 interpolation #222

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

gwbres
Copy link
Collaborator

@gwbres gwbres commented Mar 28, 2024

Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
@gwbres gwbres merged commit 484d8db into main Mar 28, 2024
4 checks passed
@lnicola
Copy link
Member

lnicola commented Mar 29, 2024

Ha! You can merge without a review! 😀

@gwbres
Copy link
Collaborator Author

gwbres commented Mar 29, 2024

Ha! You can merge without a review! 😀

Yeah, sorry but I was pretty sure about this one, and we had a very interesting pending discussion (see the Issue portal) that I wanted to update

@lnicola
Copy link
Member

lnicola commented Mar 29, 2024

It's fine, just that a while ago you couldn't merge without a review and couldn't self-approve either.

@@ -82,15 +82,15 @@ mod test {
for (epoch, sv, clock) in sp3.sv_clock() {
assert_eq!(epoch, Epoch::from_str("2019-10-27T00:00:00 GPST").unwrap());
if sv == sv!("C01") {
assert_eq!(clock, 63.035497, "bad clock data");
assert!((clock - 63.035497E-6).abs() < 1E-9, "bad clock data");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure it's worth using it, but https://docs.rs/approx.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I should look into adding this (only in test mode )

@gwbres gwbres deleted the fix-sp3-interp branch March 29, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants