SatCat5
satcat5::datetime::GpsTime Struct Reference

Detailed Description

GPS week-number and time-of-week.

The week number is the number of 7-day weeks since the GPS epoch. Each GPS week begins and ends at midnight boundary between Saturday and Sunday.

The time of week (TOW) is the number of milliseconds since the start of the current GPS week. Each week is 604,800,000 milliseconds.

Definition at line 77 of file datetime.h.

#include <datetime.h>

Public Member Functions

 GpsTime (const GpsTime &t)=default
 
GpsTimeoperator= (const GpsTime &t)=default
 
s64 convert () const
 Convert to standard form. More...
 
bool operator== (const satcat5::datetime::GpsTime &other) const
 
bool operator< (const satcat5::datetime::GpsTime &other) const
 
bool operator!= (const satcat5::datetime::GpsTime &other) const
 
void write_to (satcat5::io::Writeable *wr) const
 
bool read_from (satcat5::io::Readable *rd)
 

Public Attributes

s32 wkn
 Week number.
 
u32 tow
 Time of week.
 

Member Function Documentation

◆ convert()

s64 satcat5::datetime::GpsTime::convert ( ) const
inline

Convert to standard form.

See also
from_gps.

Definition at line 86 of file datetime.h.


The documentation for this struct was generated from the following files: