2011-10-01 18:45:20 +00:00
|
|
|
/*!
|
2011-11-07 11:47:49 +00:00
|
|
|
* \file gps_l1_ca_dll_pll_tracking.h
|
2011-12-28 21:36:45 +00:00
|
|
|
* \brief Interface of an adapter of a DLL+PLL tracking loop block
|
|
|
|
* for GPS L1 C/A to a TrackingInterface
|
2011-11-07 11:47:49 +00:00
|
|
|
* \author Carlos Aviles, 2010. carlos.avilesr(at)googlemail.com
|
|
|
|
* Javier Arribas, 2011. jarribas(at)cttc.es
|
2011-10-01 18:45:20 +00:00
|
|
|
*
|
2011-12-28 21:36:45 +00:00
|
|
|
* Code DLL + carrier PLL according to the algorithms described in:
|
|
|
|
* K.Borre, D.M.Akos, N.Bertelsen, P.Rinder, and S.H.Jensen,
|
|
|
|
* A Software-Defined GPS and Galileo Receiver. A Single-Frequency
|
2017-08-21 09:45:12 +00:00
|
|
|
* Approach, Birkhauser, 2007
|
2011-10-01 18:45:20 +00:00
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
2018-05-13 20:49:11 +00:00
|
|
|
* Copyright (C) 2010-2018 (see AUTHORS file for a list of contributors)
|
2011-10-01 18:45:20 +00:00
|
|
|
*
|
|
|
|
* GNSS-SDR is a software defined Global Navigation
|
|
|
|
* Satellite Systems receiver
|
|
|
|
*
|
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
|
|
|
* GNSS-SDR is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
2015-01-08 18:49:59 +00:00
|
|
|
* (at your option) any later version.
|
2011-10-01 18:45:20 +00:00
|
|
|
*
|
|
|
|
* GNSS-SDR is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2018-05-13 20:49:11 +00:00
|
|
|
* along with GNSS-SDR. If not, see <https://www.gnu.org/licenses/>.
|
2011-10-01 18:45:20 +00:00
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2011-12-28 03:05:37 +00:00
|
|
|
#ifndef GNSS_SDR_GPS_L1_CA_DLL_PLL_TRACKING_H_
|
|
|
|
#define GNSS_SDR_GPS_L1_CA_DLL_PLL_TRACKING_H_
|
2011-10-01 18:45:20 +00:00
|
|
|
|
2018-03-13 11:38:33 +00:00
|
|
|
#include "dll_pll_veml_tracking.h"
|
2018-12-09 21:00:09 +00:00
|
|
|
#include "tracking_interface.h"
|
2018-02-26 02:15:53 +00:00
|
|
|
#include <string>
|
2011-10-01 18:45:20 +00:00
|
|
|
|
|
|
|
class ConfigurationInterface;
|
|
|
|
|
2011-12-28 03:05:37 +00:00
|
|
|
/*!
|
|
|
|
* \brief This class implements a code DLL + carrier PLL tracking loop
|
|
|
|
*/
|
2011-10-01 18:45:20 +00:00
|
|
|
class GpsL1CaDllPllTracking : public TrackingInterface
|
|
|
|
{
|
|
|
|
public:
|
2016-01-05 09:59:37 +00:00
|
|
|
GpsL1CaDllPllTracking(ConfigurationInterface* configuration,
|
2018-12-03 18:01:47 +00:00
|
|
|
const std::string& role,
|
2018-03-03 01:03:39 +00:00
|
|
|
unsigned int in_streams,
|
|
|
|
unsigned int out_streams);
|
2011-10-01 18:45:20 +00:00
|
|
|
|
|
|
|
virtual ~GpsL1CaDllPllTracking();
|
|
|
|
|
2017-08-21 09:45:12 +00:00
|
|
|
inline std::string role() override
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
|
|
|
return role_;
|
|
|
|
}
|
2013-02-04 00:16:22 +00:00
|
|
|
|
|
|
|
//! Returns "GPS_L1_CA_DLL_PLL_Tracking"
|
2017-08-21 09:45:12 +00:00
|
|
|
inline std::string implementation() override
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
2012-06-22 14:17:28 +00:00
|
|
|
return "GPS_L1_CA_DLL_PLL_Tracking";
|
2011-10-01 18:45:20 +00:00
|
|
|
}
|
2016-01-05 09:59:37 +00:00
|
|
|
|
2017-08-21 09:45:12 +00:00
|
|
|
inline size_t item_size() override
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
|
|
|
return item_size_;
|
|
|
|
}
|
|
|
|
|
2017-08-15 22:58:10 +00:00
|
|
|
void connect(gr::top_block_sptr top_block) override;
|
|
|
|
void disconnect(gr::top_block_sptr top_block) override;
|
|
|
|
gr::basic_block_sptr get_left_block() override;
|
|
|
|
gr::basic_block_sptr get_right_block() override;
|
2011-10-01 18:45:20 +00:00
|
|
|
|
2011-12-28 21:36:45 +00:00
|
|
|
/*!
|
|
|
|
* \brief Set tracking channel unique ID
|
|
|
|
*/
|
2017-08-15 22:58:10 +00:00
|
|
|
void set_channel(unsigned int channel) override;
|
2011-12-28 21:36:45 +00:00
|
|
|
|
|
|
|
/*!
|
2012-01-27 18:01:17 +00:00
|
|
|
* \brief Set acquisition/tracking common Gnss_Synchro object pointer
|
|
|
|
* to efficiently exchange synchronization data between acquisition and tracking blocks
|
2011-12-28 21:36:45 +00:00
|
|
|
*/
|
2017-08-15 22:58:10 +00:00
|
|
|
void set_gnss_synchro(Gnss_Synchro* p_gnss_synchro) override;
|
2011-12-28 21:36:45 +00:00
|
|
|
|
2017-08-15 22:58:10 +00:00
|
|
|
void start_tracking() override;
|
2011-10-01 18:45:20 +00:00
|
|
|
|
2018-10-28 10:07:53 +00:00
|
|
|
/*!
|
|
|
|
* \brief Stop running tracking
|
|
|
|
*/
|
|
|
|
void stop_tracking() override;
|
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
private:
|
2018-03-29 13:08:54 +00:00
|
|
|
dll_pll_veml_tracking_sptr tracking_;
|
2011-10-01 18:45:20 +00:00
|
|
|
size_t item_size_;
|
|
|
|
unsigned int channel_;
|
|
|
|
std::string role_;
|
|
|
|
unsigned int in_streams_;
|
|
|
|
unsigned int out_streams_;
|
|
|
|
};
|
|
|
|
|
2018-03-03 01:03:39 +00:00
|
|
|
#endif // GNSS_SDR_GPS_L1_CA_DLL_PLL_TRACKING_H_
|