2021-12-02 09:29:25 +00:00
|
|
|
/*!
|
|
|
|
* \file gnss_time.h
|
|
|
|
* \brief class that stores both the receiver time, relative to the receiver start and the GNSS time (absolute)
|
|
|
|
* \author Javier Arribas 2022. jarribas(at)cttc.es
|
2021-03-11 15:31:02 +00:00
|
|
|
*
|
2021-12-02 09:29:25 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2021-03-11 15:31:02 +00:00
|
|
|
*
|
2021-12-02 09:29:25 +00:00
|
|
|
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2021-04-12 16:37:06 +00:00
|
|
|
* This file is part of GNSS-SDR.
|
2021-03-11 15:31:02 +00:00
|
|
|
*
|
2021-12-02 09:29:25 +00:00
|
|
|
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*
|
|
|
|
* -----------------------------------------------------------------------------
|
2021-03-11 15:31:02 +00:00
|
|
|
*/
|
|
|
|
|
2021-12-02 09:29:25 +00:00
|
|
|
|
2021-04-12 16:37:06 +00:00
|
|
|
#ifndef GNSS_SDR_GNSS_TIME_H
|
|
|
|
#define GNSS_SDR_GNSS_TIME_H
|
2021-03-11 15:31:02 +00:00
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
class GnssTime
|
|
|
|
{
|
|
|
|
public:
|
2021-04-12 16:37:06 +00:00
|
|
|
double rx_time;
|
|
|
|
int week; /*!< GPS week number (since January 1980) */
|
2021-04-12 10:14:04 +00:00
|
|
|
int tow_ms; /* time of week [ms]*/
|
|
|
|
double tow_ms_fraction; /* tow ms fractional part [ms]*/
|
2021-03-11 15:31:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|