2011-11-22 17:21:54 +00:00
|
|
|
/*!
|
|
|
|
* \file tracking_FLL_PLL_filter.h
|
2011-12-28 21:36:45 +00:00
|
|
|
* \brief Interface of a hybrid FLL and PLL filter for tracking carrier loop
|
2011-11-22 17:21:54 +00:00
|
|
|
* \author Javier Arribas, 2011. jarribas(at)cttc.es
|
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2011-11-22 17:21:54 +00:00
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2011-11-22 17:21:54 +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-11-22 17:21:54 +00:00
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2011-11-22 17:21:54 +00:00
|
|
|
*/
|
|
|
|
|
2020-02-08 09:10:46 +00:00
|
|
|
#ifndef GNSS_SDR_TRACKING_FLL_PLL_FILTER_H
|
|
|
|
#define GNSS_SDR_TRACKING_FLL_PLL_FILTER_H
|
2011-11-22 17:21:54 +00:00
|
|
|
|
2020-11-01 12:37:19 +00:00
|
|
|
/** \addtogroup Tracking
|
|
|
|
* \{ */
|
|
|
|
/** \addtogroup Tracking_libs
|
|
|
|
* \{ */
|
|
|
|
|
|
|
|
|
2011-12-28 03:05:37 +00:00
|
|
|
/*!
|
|
|
|
* \brief This class implements a hybrid FLL and PLL filter for tracking carrier loop
|
|
|
|
*/
|
2012-01-13 00:49:24 +00:00
|
|
|
class Tracking_FLL_PLL_filter
|
2011-11-22 17:21:54 +00:00
|
|
|
{
|
2019-07-01 21:44:42 +00:00
|
|
|
public:
|
2021-10-11 13:13:12 +00:00
|
|
|
Tracking_FLL_PLL_filter() = default;
|
2020-06-23 07:47:58 +00:00
|
|
|
~Tracking_FLL_PLL_filter() = default;
|
2019-07-01 21:44:42 +00:00
|
|
|
void set_params(float fll_bw_hz, float pll_bw_hz, int order);
|
|
|
|
void initialize(float d_acq_carrier_doppler_hz);
|
|
|
|
float get_carrier_error(float FLL_discriminator, float PLL_discriminator, float correlation_time_s);
|
|
|
|
|
2011-11-22 17:21:54 +00:00
|
|
|
private:
|
|
|
|
// FLL + PLL filter parameters
|
2021-10-11 13:13:12 +00:00
|
|
|
float d_pll_w{0.0};
|
|
|
|
float d_pll_w0p3{0.0};
|
|
|
|
float d_pll_w0f2{0.0};
|
|
|
|
float d_pll_x{0.0};
|
|
|
|
float d_pll_a2{0.0};
|
|
|
|
float d_pll_w0f{0.0};
|
|
|
|
float d_pll_a3{0.0};
|
|
|
|
float d_pll_w0p2{0.0};
|
|
|
|
float d_pll_b3{0.0};
|
|
|
|
float d_pll_w0p{0.0};
|
|
|
|
int d_order{0};
|
2011-11-22 17:21:54 +00:00
|
|
|
};
|
|
|
|
|
2020-11-01 12:37:19 +00:00
|
|
|
|
|
|
|
/** \} */
|
|
|
|
/** \} */
|
2011-11-22 17:21:54 +00:00
|
|
|
#endif
|