QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSTime.h File Reference
#include <cstdint>
+ Include dependency graph for GPSTime.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  GPSTime
 GPS system time as receivers stamp their epochs: a week number and the milliseconds into that week.
 

Functions

constexpr uint64_t GPSTime::epochMs (uint32_t week, uint32_t towMs)
 Milliseconds since the GPS epoch of towMs into week.
 
constexpr bool GPSTime::towAdvances (uint32_t later, uint32_t earlier)
 Whether time of week later follows earlier by less than half a week, across the week rollover.
 

Variables

constexpr uint32_t GPSTime::WEEK_MS = 604800000
 Milliseconds in a GPS week; every time of week is below it.