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
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2011-10-01 18:45:20 +00:00
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2011-10-01 18:45:20 +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
|
2011-10-01 18:45:20 +00:00
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2011-10-01 18:45:20 +00:00
|
|
|
*/
|
|
|
|
|
2020-02-08 09:10:46 +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
|
|
|
|
2020-11-01 12:37:19 +00:00
|
|
|
/** \addtogroup Tracking
|
|
|
|
* Classes for GNSS signal tracking.
|
|
|
|
* \{ */
|
|
|
|
/** \addtogroup Tracking_adapters tracking_adapters
|
|
|
|
* Wrap GNU Radio blocks for GNSS signal tracking with a TrackingInterface
|
|
|
|
* \{ */
|
|
|
|
|
|
|
|
|
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:
|
2020-06-29 07:07:41 +00:00
|
|
|
GpsL1CaDllPllTracking(
|
|
|
|
const 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
|
|
|
|
2019-07-21 17:32:52 +00:00
|
|
|
~GpsL1CaDllPllTracking() = default;
|
2011-10-01 18:45:20 +00:00
|
|
|
|
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:
|
2022-12-08 16:39:16 +00:00
|
|
|
dll_pll_veml_tracking_sptr tracking_sptr_;
|
|
|
|
std::string role_;
|
2011-10-01 18:45:20 +00:00
|
|
|
size_t item_size_;
|
|
|
|
unsigned int channel_;
|
|
|
|
unsigned int in_streams_;
|
|
|
|
unsigned int out_streams_;
|
|
|
|
};
|
|
|
|
|
2020-11-01 12:37:19 +00:00
|
|
|
|
|
|
|
/** \} */
|
|
|
|
/** \} */
|
2020-02-08 09:10:46 +00:00
|
|
|
#endif // GNSS_SDR_GPS_L1_CA_DLL_PLL_TRACKING_H
|