|
Vulcan
Aerospace Engineering Utilities Built on Janus
|
#include <cmath>#include <janus/janus.hpp>#include <vulcan/time/JulianDate.hpp>#include <vulcan/time/TimeConstants.hpp>#include <vulcan/time/TimeScales.hpp>

Go to the source code of this file.
Namespaces | |
| namespace | vulcan |
| namespace | vulcan::time |
Enumerations | |
| enum class | vulcan::time::GpsDayOfWeek { vulcan::time::Sunday = 0 , vulcan::time::Monday = 1 , vulcan::time::Tuesday = 2 , vulcan::time::Wednesday = 3 , vulcan::time::Thursday = 4 , vulcan::time::Friday = 5 , vulcan::time::Saturday = 6 } |
| GPS day of week enumeration. More... | |
Functions | |
| constexpr int | vulcan::time::full_gps_week (int week_mod, int rollover_count=GPS_CURRENT_ROLLOVER) |
| Calculate full GPS week number from a potentially rolled-over week. | |
| template<typename Scalar> | |
| Scalar | vulcan::time::gps_week_to_utc_jd (int week, const Scalar &seconds_of_week, int delta_at=37) |
| Convert GPS week/seconds to UTC Julian Date. | |
| template<typename Scalar> | |
| Scalar | vulcan::time::gps_week_to_tai_jd (int week, const Scalar &seconds_of_week) |
| Convert GPS week/seconds to TAI Julian Date. | |
| std::pair< int, double > | vulcan::time::utc_jd_to_gps_week (double utc_jd, int delta_at) |
| Convert UTC Julian Date to GPS week and seconds. | |
| std::pair< int, double > | vulcan::time::utc_jd_to_gps_week_auto (double utc_jd) |
| Convert UTC Julian Date to GPS week and seconds (auto leap second lookup). | |
| int | vulcan::time::gps_utc_offset (double utc_jd) |
| Get GPS - UTC offset for a given UTC Julian Date. | |
| constexpr int | vulcan::time::gps_utc_offset (int delta_at) |
| Get GPS - UTC offset (templated with explicit delta_at). | |
| GpsDayOfWeek | vulcan::time::gps_day_of_week (double seconds_of_week) |
| Get GPS day of week from seconds into the week. | |
| double | vulcan::time::gps_time_of_day (double seconds_of_week) |
| Get time of day from GPS seconds of week. | |
Variables | |
| constexpr int | vulcan::time::GPS_WEEK_ROLLOVER = 1024 |
| GPS week number rollover constant. | |
| constexpr int | vulcan::time::GPS_CURRENT_ROLLOVER = 2 |
| Current GPS week rollover count (post-April 2019). | |