GNSS atomic time representation: week number (wno) and time of week (tow) used by GPS, Galileo and BeiDou.
More...
#include <time.hpp>
|
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 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.
|
|
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.
◆ 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.
◆ WnoTow() [1/2]
fpsdk::common::time::WnoTow::WnoTow |
( |
const Sys | sys = Sys::GPS | ) |
|
◆ 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] | wno | Week number [-] (>= SANE_WNO_MIN) |
[in] | tow | Time of week [s] (SANE_TOW_MIN - SANE_TOW_MAX) |
[in] | sys | GNSS |
◆ SysStr()
const char * fpsdk::common::time::WnoTow::SysStr |
( |
| ) |
const |
Stringify time system (for debugging)
- Returns
- a string identifying the time system
◆ 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_ |
The documentation for this struct was generated from the following file:
- fpsdk_common/include/fpsdk_common/time.hpp