2017-06-06 14:27:48 +00:00
|
|
|
/*
|
|
|
|
* \file glonass_gnav_utc_model.h
|
|
|
|
* \brief Interface of a GLONASS GNAV UTC MODEL storage
|
2017-08-17 04:40:05 +00:00
|
|
|
* \note Code added as part of GSoC 2017 program
|
|
|
|
* \author Damian Miralles, 2017. dmiralles2009(at)gmail.com
|
|
|
|
* \see <a href="http://russianspacesystems.ru/wp-content/uploads/2016/08/ICD_GLONASS_eng_v5.1.pdf">GLONASS ICD</a>
|
2017-06-06 14:27:48 +00:00
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2017-06-06 14:27:48 +00:00
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2017-06-06 14:27:48 +00:00
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
2020-02-08 00:20:02 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2017-06-06 14:27:48 +00:00
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2017-06-06 14:27:48 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "glonass_gnav_utc_model.h"
|
|
|
|
|
2020-12-30 20:49:29 +00:00
|
|
|
double Glonass_Gnav_Utc_Model::utc_time(double glonass_time_corrected) const
|
2017-06-06 14:27:48 +00:00
|
|
|
{
|
|
|
|
// GLONASS Time is relative to UTC Moscow, so we simply add its time difference
|
2020-07-19 12:26:15 +00:00
|
|
|
double t_utc = glonass_time_corrected + 3.0 * 3600.0 + d_tau_c;
|
2017-06-21 04:44:44 +00:00
|
|
|
|
2017-06-06 14:27:48 +00:00
|
|
|
return t_utc;
|
|
|
|
}
|