2018-03-13 09:51:33 +00:00
|
|
|
|
/*!
|
2022-08-30 09:30:53 +00:00
|
|
|
|
* \file gps_l1_ca_gaussian_tracking.h
|
2018-09-04 18:08:59 +00:00
|
|
|
|
* \brief Interface of an adapter of a DLL + Kalman carrier
|
2018-04-10 08:52:19 +00:00
|
|
|
|
* tracking loop block for GPS L1 C/A signals
|
|
|
|
|
* \author Javier Arribas, 2018. jarribas(at)cttc.es
|
|
|
|
|
* \author Jordi Vila-Valls 2018. jvila(at)cttc.es
|
|
|
|
|
* \author Carles Fernandez-Prades 2018. cfernandez(at)cttc.es
|
2018-03-13 09:51:33 +00:00
|
|
|
|
*
|
2018-04-10 08:52:19 +00:00
|
|
|
|
* Reference:
|
|
|
|
|
* J. Vila-Valls, P. Closas, M. Navarro and C. Fernandez-Prades,
|
|
|
|
|
* "Are PLLs Dead? A Tutorial on Kalman Filter-based Techniques for Digital
|
|
|
|
|
* Carrier Synchronization", IEEE Aerospace and Electronic Systems Magazine,
|
|
|
|
|
* Vol. 32, No. 7, pp. 28–45, July 2017. DOI: 10.1109/MAES.2017.150260
|
2018-03-13 09:51:33 +00:00
|
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
|
* -----------------------------------------------------------------------------
|
2018-03-13 09:51:33 +00:00
|
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
|
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2018-03-13 09:51: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
|
2018-03-13 09:51:33 +00:00
|
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
|
* -----------------------------------------------------------------------------
|
2018-03-13 09:51:33 +00:00
|
|
|
|
*/
|
|
|
|
|
|
2022-08-30 09:30:53 +00:00
|
|
|
|
#ifndef GNSS_SDR_GPS_L1_CA_GAUSSIAN_TRACKING_H
|
|
|
|
|
#define GNSS_SDR_GPS_L1_CA_GAUSSIAN_TRACKING_H
|
2018-03-13 09:51:33 +00:00
|
|
|
|
|
2022-08-30 09:30:53 +00:00
|
|
|
|
#include "gps_l1_ca_gaussian_tracking_cc.h"
|
2018-04-10 08:52:19 +00:00
|
|
|
|
#include "tracking_interface.h"
|
|
|
|
|
#include <string>
|
2018-03-13 09:51:33 +00:00
|
|
|
|
|
2020-11-01 12:37:19 +00:00
|
|
|
|
/** \addtogroup Tracking
|
|
|
|
|
* \{ */
|
|
|
|
|
/** \addtogroup Tracking_adapters
|
|
|
|
|
* \{ */
|
|
|
|
|
|
|
|
|
|
|
2018-03-13 09:51:33 +00:00
|
|
|
|
class ConfigurationInterface;
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
* \brief This class implements a code DLL + carrier PLL tracking loop
|
|
|
|
|
*/
|
2022-08-30 09:30:53 +00:00
|
|
|
|
class GpsL1CaGaussianTracking : public TrackingInterface
|
2018-03-13 09:51:33 +00:00
|
|
|
|
{
|
|
|
|
|
public:
|
2022-08-30 09:30:53 +00:00
|
|
|
|
GpsL1CaGaussianTracking(
|
2020-06-29 07:07:41 +00:00
|
|
|
|
const ConfigurationInterface* configuration,
|
2018-12-03 18:01:47 +00:00
|
|
|
|
const std::string& role,
|
2018-04-10 08:52:19 +00:00
|
|
|
|
unsigned int in_streams,
|
|
|
|
|
unsigned int out_streams);
|
2018-03-13 09:51:33 +00:00
|
|
|
|
|
2022-08-30 09:30:53 +00:00
|
|
|
|
~GpsL1CaGaussianTracking() = default;
|
2018-03-13 09:51:33 +00:00
|
|
|
|
|
|
|
|
|
inline std::string role() override
|
|
|
|
|
{
|
|
|
|
|
return role_;
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-30 09:30:53 +00:00
|
|
|
|
//! Returns "GPS_L1_CA_Gaussian_Tracking"
|
2018-03-13 09:51:33 +00:00
|
|
|
|
inline std::string implementation() override
|
|
|
|
|
{
|
2022-08-30 09:30:53 +00:00
|
|
|
|
return "GPS_L1_CA_Gaussian_Tracking";
|
2018-03-13 09:51:33 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
inline size_t item_size() override
|
|
|
|
|
{
|
|
|
|
|
return item_size_;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
* \brief Set tracking channel unique ID
|
|
|
|
|
*/
|
|
|
|
|
void set_channel(unsigned int channel) override;
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
* \brief Set acquisition/tracking common Gnss_Synchro object pointer
|
|
|
|
|
* to efficiently exchange synchronization data between acquisition and tracking blocks
|
|
|
|
|
*/
|
|
|
|
|
void set_gnss_synchro(Gnss_Synchro* p_gnss_synchro) override;
|
|
|
|
|
|
|
|
|
|
void start_tracking() override;
|
|
|
|
|
|
2018-10-28 10:07:53 +00:00
|
|
|
|
/*!
|
|
|
|
|
* \brief Stop running tracking
|
|
|
|
|
*/
|
|
|
|
|
void stop_tracking() override;
|
|
|
|
|
|
2018-03-13 09:51:33 +00:00
|
|
|
|
private:
|
2022-12-08 16:39:16 +00:00
|
|
|
|
gps_l1_ca_gaussian_tracking_cc_sptr tracking_sptr_;
|
|
|
|
|
std::string role_;
|
2018-03-13 09:51:33 +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
|
|
|
|
|
|
|
|
|
/** \} */
|
|
|
|
|
/** \} */
|
2022-08-30 09:30:53 +00:00
|
|
|
|
#endif // GNSS_SDR_GPS_L1_CA_GAUSSIAN_TRACKING_H
|