2013-03-11 18:29:33 +00:00
|
|
|
/*!
|
|
|
|
* \file gps_ephemeris.cc
|
2013-03-14 12:52:32 +00:00
|
|
|
* \brief Interface of a GPS EPHEMERIS storage and orbital model functions
|
2013-03-11 18:29:33 +00:00
|
|
|
*
|
2021-07-24 11:47:52 +00:00
|
|
|
* See https://www.gps.gov/technical/icwg/IS-GPS-200M.pdf Appendix II
|
2013-03-11 18:29:33 +00:00
|
|
|
* \author Javier Arribas, 2013. jarribas(at)cttc.es
|
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2013-03-11 18:29:33 +00:00
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2013-03-11 18:29:33 +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
|
2013-03-11 18:29:33 +00:00
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2013-03-11 18:29:33 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "gps_ephemeris.h"
|
2018-12-02 13:32:22 +00:00
|
|
|
#include "gnss_satellite.h"
|
2021-02-20 23:01:56 +00:00
|
|
|
#include <string>
|
2013-03-11 18:29:33 +00:00
|
|
|
|
2020-06-10 08:15:59 +00:00
|
|
|
|
2013-03-11 18:29:33 +00:00
|
|
|
Gps_Ephemeris::Gps_Ephemeris()
|
|
|
|
{
|
2016-05-02 10:06:23 +00:00
|
|
|
auto gnss_sat = Gnss_Satellite();
|
2020-07-19 12:26:15 +00:00
|
|
|
const std::string _system("GPS");
|
2018-08-13 23:13:07 +00:00
|
|
|
for (uint32_t i = 1; i < 33; i++)
|
2016-05-02 10:06:23 +00:00
|
|
|
{
|
|
|
|
satelliteBlock[i] = gnss_sat.what_block(_system, i);
|
|
|
|
}
|
2021-02-20 23:01:56 +00:00
|
|
|
this->System = 'G';
|
2013-03-14 12:52:32 +00:00
|
|
|
}
|