GNSS-SDR  0.0.19
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  * 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_DLL_FILTER_H
24 #define GNSS_SDR_TRACKING_2ND_DLL_FILTER_H
25 
26 /** \addtogroup Tracking
27  * \{ */
28 /** \addtogroup Tracking_libs
29  * \{ */
30 
31 
32 /*!
33  * \brief This class implements a 2nd order DLL filter for code 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
37  * and Galileo Receiver. A Single-Frequency Approach,
38  * Birkhauser, 2007, Applied and Numerical Harmonic Analysis.
39  */
41 {
42 public:
44  ~Tracking_2nd_DLL_filter() = default;
45  explicit Tracking_2nd_DLL_filter(float pdi_code);
46 
47  void set_DLL_BW(float dll_bw_hz); //!< Set DLL filter bandwidth [Hz]
48  void set_pdi(float pdi_code); //!< Set Summation interval for code [s]
49  void initialize(); //!< Start tracking with acquisition information
50  float get_code_nco(float DLL_discriminator); //!< Numerically controlled oscillator
51 
52 private:
53  void calculate_lopp_coef(float* tau1, float* tau2, float lbw, float zeta, float k);
54 
55  // PLL filter parameters
56  float d_tau1_code = 0.0;
57  float d_tau2_code = 0.0;
58  float d_pdi_code = 0.0;
59  float d_dllnoisebandwidth = 0.0;
60  float d_dlldampingratio = 0.0;
61  float d_old_code_error = 0.0;
62  float d_old_code_nco = 0.0;
63 };
64 
65 
66 /** \} */
67 /** \} */
68 #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].