GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
tracking_2nd_PLL_filter.h
Go to the documentation of this file.
1 /*!
2  * \file tracking_2nd_PLL_filter.h
3  * \brief Interface of a 2nd order PLL filter for carrier tracking loop
4  * \author Javier Arribas, 2011. jarribas(at)cttc.es
5  *
6  * Class that implements 2 order PLL filter for tracking carrier loop.
7  * The algorithm is described in
8  * K.Borre, D.M.Akos, N.Bertelsen, P.Rinder, and S.H. Jensen,
9  * A Software-Defined GPS and Galileo Receiver. A Single-Frequency Approach,
10  * Birkhauser, 2007, Applied and Numerical Harmonic Analysis.
11  *
12  * -----------------------------------------------------------------------------
13  *
14  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
15  * This file is part of GNSS-SDR.
16  *
17  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
18  * SPDX-License-Identifier: GPL-3.0-or-later
19  *
20  * -----------------------------------------------------------------------------
21  */
22 
23 #ifndef GNSS_SDR_TRACKING_2ND_PLL_FILTER_H
24 #define GNSS_SDR_TRACKING_2ND_PLL_FILTER_H
25 
26 /** \addtogroup Tracking
27  * \{ */
28 /** \addtogroup Tracking_libs
29  * \{ */
30 
31 
32 /*!
33  * \brief This class implements a 2nd order PLL filter for carrier tracking loop.
34  *
35  * The algorithm is described in:
36  * K.Borre, D.M.Akos, N.Bertelsen, P.Rinder, and S. H. Jensen, A Software-Defined GPS and Galileo Receiver. A Single-Frequency Approach,
37  * Birkhauser, 2007, Applied and Numerical Harmonic Analysis.
38  */
40 {
41 public:
43  ~Tracking_2nd_PLL_filter() = default;
44  explicit Tracking_2nd_PLL_filter(float pdi_carr);
45 
46  void set_PLL_BW(float pll_bw_hz); //!< Set PLL loop bandwidth [Hz]
47  void set_pdi(float pdi_carr); //!< Set Summation interval for code [s]
48  void initialize();
49  float get_carrier_nco(float PLL_discriminator);
50 
51 private:
52  void calculate_lopp_coef(float* tau1, float* tau2, float lbw, float zeta, float k);
53  // PLL filter parameters
54  float d_tau1_carr = 0.0;
55  float d_tau2_carr = 0.0;
56  float d_pdi_carr = 0.0;
57  float d_pllnoisebandwidth = 0.0;
58  float d_plldampingratio = 0.0;
59  float d_old_carr_error = 0.0;
60  float d_old_carr_nco = 0.0;
61 };
62 
63 
64 /** \} */
65 /** \} */
66 #endif
This class implements a 2nd order PLL filter for carrier tracking loop.
void set_pdi(float pdi_carr)
Set Summation interval for code [s].
void set_PLL_BW(float pll_bw_hz)
Set PLL loop bandwidth [Hz].