QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSTime Namespace Reference

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

Functions

constexpr uint64_t epochMs (uint32_t week, uint32_t towMs)
 Milliseconds since the GPS epoch of towMs into week.
 
constexpr bool 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 WEEK_MS = 604800000
 Milliseconds in a GPS week; every time of week is below it.
 

Detailed Description

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

Function Documentation

◆ epochMs()

constexpr uint64_t GPSTime::epochMs ( uint32_t  week,
uint32_t  towMs 
)
constexpr

Milliseconds since the GPS epoch of towMs into week.

Definition at line 12 of file GPSTime.h.

References WEEK_MS.

◆ towAdvances()

constexpr bool GPSTime::towAdvances ( uint32_t  later,
uint32_t  earlier 
)
constexpr

Whether time of week later follows earlier by less than half a week, across the week rollover.

Definition at line 18 of file GPSTime.h.

References WEEK_MS.

Referenced by UBX::EpochAssembler::end(), and UBX::EpochAssembler::find().

Variable Documentation

◆ WEEK_MS

constexpr uint32_t GPSTime::WEEK_MS = 604800000
inlineconstexpr

Milliseconds in a GPS week; every time of week is below it.

Definition at line 9 of file GPSTime.h.

Referenced by epochMs(), UBX::EpochAssembler::find(), and towAdvances().