GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
tracking_2nd_DLL_filter.h
Go to the documentation of this file.
1 /*!
2  * \file tracking_2nd_DLL_filter.h
3  * \brief Interface of a 2nd order DLL filter for code tracking loop.
4  * \author Javier Arribas, 2011. jarribas(at)cttc.es
5  *
6  * Class that implements a 2nd order PLL filter for code tracking 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_DLL_FILTER_H
27 #define GNSS_SDR_TRACKING_2ND_DLL_FILTER_H
28 
29 /*!
30  * \brief This class implements a 2nd order DLL filter for code 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
34  * and Galileo Receiver. A Single-Frequency Approach,
35  * Birkhauser, 2007, Applied and Numerical Harmonic Analysis.
36  */
38 {
39 public:
41  ~Tracking_2nd_DLL_filter() = default;
42  explicit Tracking_2nd_DLL_filter(float pdi_code);
43 
44  void set_DLL_BW(float dll_bw_hz); //!< Set DLL filter bandwidth [Hz]
45  void set_pdi(float pdi_code); //!< Set Summation interval for code [s]
46  void initialize(); //!< Start tracking with acquisition information
47  float get_code_nco(float DLL_discriminator); //!< Numerically controlled oscillator
48 
49 private:
50  void calculate_lopp_coef(float* tau1, float* tau2, float lbw, float zeta, float k);
51 
52  // PLL filter parameters
53  float d_tau1_code = 0.0;
54  float d_tau2_code = 0.0;
55  float d_pdi_code = 0.0;
56  float d_dllnoisebandwidth = 0.0;
57  float d_dlldampingratio = 0.0;
58  float d_old_code_error = 0.0;
59  float d_old_code_nco = 0.0;
60 };
61 
62 #endif
float get_code_nco(float DLL_discriminator)
Numerically controlled oscillator.
This class implements a 2nd order DLL filter for code tracking loop.
void set_DLL_BW(float dll_bw_hz)
Set DLL filter bandwidth [Hz].
void initialize()
Start tracking with acquisition information.
void set_pdi(float pdi_code)
Set Summation interval for code [s].