GNSS-SDR  0.0.13
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  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
15  *
16  * GNSS-SDR is a software defined Global Navigation
17  * Satellite Systems receiver
18  *
19  * This file is part of GNSS-SDR.
20  *
21  * SPDX-License-Identifier: GPL-3.0-or-later
22  *
23  * -----------------------------------------------------------------------------
24  */
25 
26 #ifndef GNSS_SDR_TRACKING_2ND_PLL_FILTER_H
27 #define GNSS_SDR_TRACKING_2ND_PLL_FILTER_H
28 
29 /*!
30  * \brief This class implements a 2nd order PLL filter for carrier tracking loop.
31  *
32  * The algorithm is described in:
33  * K.Borre, D.M.Akos, N.Bertelsen, P.Rinder, and S. H. Jensen, A Software-Defined GPS and Galileo Receiver. A Single-Frequency Approach,
34  * Birkhauser, 2007, Applied and Numerical Harmonic Analysis.
35  */
37 {
38 public:
40  ~Tracking_2nd_PLL_filter() = default;
41  explicit Tracking_2nd_PLL_filter(float pdi_carr);
42 
43  void set_PLL_BW(float pll_bw_hz); //!< Set PLL loop bandwidth [Hz]
44  void set_pdi(float pdi_carr); //!< Set Summation interval for code [s]
45  void initialize();
46  float get_carrier_nco(float PLL_discriminator);
47 
48 private:
49  void calculate_lopp_coef(float* tau1, float* tau2, float lbw, float zeta, float k);
50  // PLL filter parameters
51  float d_tau1_carr = 0.0;
52  float d_tau2_carr = 0.0;
53  float d_pdi_carr = 0.0;
54  float d_pllnoisebandwidth = 0.0;
55  float d_plldampingratio = 0.0;
56  float d_old_carr_error = 0.0;
57  float d_old_carr_nco = 0.0;
58 };
59 
60 #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].