1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-08 11:13:03 +00:00

Debug Build: Measuring signal timestamp vs. GNSS obs RX time

This commit is contained in:
Javier Arribas
2021-04-12 18:37:06 +02:00
parent 3353a62296
commit 26bc9c9b5a
6 changed files with 84 additions and 34 deletions

View File

@@ -1,44 +1,26 @@
/* -------------------------------------------------------------------------
*
* Copyright (C) 2019 (see AUTHORS file for a list of contributors)
* Copyright (C) 2021 (see AUTHORS file for a list of contributors)
*
* GNSS-SDR-SIM is a software defined Global Navigation
* GNSS-SDR is a software defined Global Navigation
* Satellite Systems Simulator
*
* This file is part of GNSS-SDR-SIM.
* This file is part of GNSS-SDR.
*
*/
#ifndef GNSS_SDR_SIM_GNSS_TIME_H
#define GNSS_SDR_SIM_GNSS_TIME_H
#ifndef GNSS_SDR_GNSS_TIME_H
#define GNSS_SDR_GNSS_TIME_H
#include <boost/serialization/nvp.hpp>
#include <cstdint>
#include <time.h>
class GnssTime
{
public:
//time_t time; /* time (s) expressed by standard time_t */
int week; /*!< GPS week number (since January 1980) */
//double sec; /*!< second inside the GPS \a week */
double rx_time;
int week; /*!< GPS week number (since January 1980) */
int tow_ms; /* time of week [ms]*/
double tow_ms_fraction; /* tow ms fractional part [ms]*/
template <class Archive>
/*!
* \brief Serialize is a boost standard method to be called by the boost XML serialization. Here is used to save the ephemeris data on disk file.
*/
inline void serialize(Archive& archive, const uint32_t version)
{
using boost::serialization::make_nvp;
if (version)
{
};
archive& make_nvp("week", week);
archive& make_nvp("tow_ms", tow_ms);
};
};
#endif