Fixposition SDK 0.0.0-heads/main-0-g5c7edb5
Collection of c++ libraries and apps for use with Fixposition products on Linux
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 [-] (>= SANE_WNO_MIN, if normalised)
 
double tow_ = 0.0
 Time of week [s] (SANE_TOW_MIN - SANE_TOW_MAX, if normalised)
 
Sys sys_
 Time system.
 

Static Public Attributes

static constexpr int SANE_WNO_MIN = 0
 Minimum sane wno_ value.
 
static constexpr int SANE_WNO_MAX = 9999
 Maximum sane wno_ value, good enough for the next centuries.
 
static constexpr double SANE_TOW_MIN = 0.0
 Minimum sane tow_ value.
 
static constexpr double SANE_TOW_MAX = SEC_IN_WEEK_D - std::numeric_limits<double>::epsilon()
 Maximum sane tow_ value.
 

Detailed Description

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

Definition at line 437 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 441 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.

Note
Input values are not normalised nor range checked here. See comments in Time::GetWnoTow() and Time::SetWnoTow()
Parameters
[in]wnoWeek number [-] (>= SANE_WNO_MIN)
[in]towTime of week [s] (SANE_TOW_MIN - SANE_TOW_MAX)
[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

◆ SANE_WNO_MIN

int fpsdk::common::time::WnoTow::SANE_WNO_MIN = 0
staticconstexpr

Minimum sane wno_ value.

Definition at line 467 of file time.hpp.

◆ SANE_WNO_MAX

int fpsdk::common::time::WnoTow::SANE_WNO_MAX = 9999
staticconstexpr

Maximum sane wno_ value, good enough for the next centuries.

Definition at line 468 of file time.hpp.

◆ SANE_TOW_MIN

double fpsdk::common::time::WnoTow::SANE_TOW_MIN = 0.0
staticconstexpr

Minimum sane tow_ value.

Definition at line 469 of file time.hpp.

◆ SANE_TOW_MAX

double fpsdk::common::time::WnoTow::SANE_TOW_MAX = SEC_IN_WEEK_D - std::numeric_limits<double>::epsilon()
staticconstexpr

Maximum sane tow_ value.

Definition at line 470 of file time.hpp.

◆ wno_

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

Week number [-] (>= SANE_WNO_MIN, if normalised)

Definition at line 472 of file time.hpp.

◆ tow_

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

Time of week [s] (SANE_TOW_MIN - SANE_TOW_MAX, if normalised)

Definition at line 473 of file time.hpp.

◆ sys_

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

Time system.

Definition at line 474 of file time.hpp.


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