Fixposition SDK 0.0.0-heads/main-0-g90a51ff
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
fpsdk::common::time::WnoTow Struct Reference

GNSS atomic time representation: week number (wno) and time of week (tow) used by GPS, Galileo and BeiDou. More...

#include <time.hpp>

Public Types

enum class  Sys { GPS , GAL , BDS }
 GNSS time system. More...
 

Public Member Functions

 WnoTow (const Sys sys=Sys::GPS)
 Constructor.
 
 WnoTow (const int wno, const double tow, const Sys sys=Sys::GPS)
 Constructor.
 
const char * SysStr () const
 Stringify time system (for debugging)
 

Public Attributes

int wno_ = 0
 Week number [-] (>= 0)
 
double tow_ = 0.0
 Time of week [s] (0.0-603'799.999..)
 
Sys sys_
 Time system.
 

Detailed Description

GNSS atomic time representation: week number (wno) and time of week (tow) used by GPS, Galileo and BeiDou.

Definition at line 419 of file time.hpp.

Member Enumeration Documentation

◆ Sys

GNSS time system.

Enumerator
GPS 

GPS (also: SBAS, QZSS)

GAL 

Galileo system time (GST)

BDS 

BeiDou time.

Definition at line 423 of file time.hpp.

Constructor & Destructor Documentation

◆ WnoTow() [1/2]

fpsdk::common::time::WnoTow::WnoTow ( const Sys sys = Sys::GPS)

Constructor.

Parameters
[in]sysGNSS

◆ WnoTow() [2/2]

fpsdk::common::time::WnoTow::WnoTow ( const int wno,
const double tow,
const Sys sys = Sys::GPS )

Constructor.

Parameters
[in]wnoWeek number [-] (>= 0)
[in]towTime of week [s] (0.0-603'799.999..)
[in]sysGNSS

Member Function Documentation

◆ SysStr()

const char * fpsdk::common::time::WnoTow::SysStr ( ) const

Stringify time system (for debugging)

Returns
a string identifying the time system

Member Data Documentation

◆ wno_

int fpsdk::common::time::WnoTow::wno_ = 0

Week number [-] (>= 0)

Definition at line 446 of file time.hpp.

◆ tow_

double fpsdk::common::time::WnoTow::tow_ = 0.0

Time of week [s] (0.0-603'799.999..)

Definition at line 447 of file time.hpp.

◆ sys_

Sys fpsdk::common::time::WnoTow::sys_

Time system.

Definition at line 448 of file time.hpp.


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