Skip to content

Conversation

jbangelo
Copy link
Collaborator

Before I can add support for GLONASS ephemeris I need to add the ability represent the C utc_params_t struct. This PR adds a wrapper around utc_params_t, and also adds wrappers for some of the related time functionality. Specifically it adds UtcTime and the ability to convert a GpsTime to or from a UtcTime (both with live leap second information or with hardcoded leap seconds), as well as a type for modified julian dates (MJD) and conversions of that to and from UTC times. I also put in a couple of rounding functions for GPS times that I originally missed.

The tests are again taken from the C tests and modified to be compilable rust code.

@jbangelo jbangelo force-pushed the jbangelo/additional-time branch from 4b894b7 to cccd708 Compare August 1, 2021 03:52
@jbangelo jbangelo merged commit ef1b2da into master Aug 1, 2021
@jbangelo jbangelo deleted the jbangelo/additional-time branch August 1, 2021 04:42
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.

4 participants