GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
dll_pll_conf_fpga.h
Go to the documentation of this file.
1 /*!
2  * \file dll_pll_conf_fpga.h
3  * \brief Class that contains all the configuration parameters for generic
4  * tracking block based on a DLL and a PLL for the FPGA.
5  * \author Marc Majoral, 2019. mmajoral(at)cttc.cat
6  * \author Javier Arribas, 2018. jarribas(at)cttc.es
7  *
8  * Class that contains all the configuration parameters for generic tracking block based on a DLL and a PLL.
9  *
10  * -----------------------------------------------------------------------------
11  *
12  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
13  * This file is part of GNSS-SDR.
14  *
15  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
16  * SPDX-License-Identifier: GPL-3.0-or-later
17  *
18  * -----------------------------------------------------------------------------
19  */
20 
21 #ifndef GNSS_SDR_DLL_PLL_CONF_FPGA_H
22 #define GNSS_SDR_DLL_PLL_CONF_FPGA_H
23 
25 #include <cstdint>
26 #include <string>
27 
28 /** \addtogroup Tracking
29  * \{ */
30 /** \addtogroup Tracking_libs
31  * \{ */
32 
33 
35 {
36 public:
38  void SetFromConfiguration(const ConfigurationInterface* configuration, const std::string& role);
39 
40  /* DLL/PLL tracking configuration */
41  std::string device_name{"/dev/uio"};
42  std::string dump_filename{"./dll_pll_dump.dat"};
43 
44  double fs_in{12500000.0};
45  double carrier_lock_th{0.0};
46 
47  float pll_pull_in_bw_hz{50.0};
48  float dll_pull_in_bw_hz{3.0};
49  float fll_bw_hz{35.0};
50  float pll_bw_hz{5.0};
51  float dll_bw_hz{0.5};
52  float pll_bw_narrow_hz{2.0};
53  float dll_bw_narrow_hz{0.25};
54  float early_late_space_chips{0.25};
55  float very_early_late_space_chips{0.5};
56  float early_late_space_narrow_chips{0.15};
57  float very_early_late_space_narrow_chips{0.5};
58  float slope{1.0};
59  float spc{0.5};
60  float y_intercept{1.0};
61  float cn0_smoother_alpha{0.002};
62  float carrier_lock_test_smoother_alpha{0.002};
63 
64  uint32_t pull_in_time_s{10U}; // signed integer, when pull in time is not yet reached it has to be compared against a negative number
65  uint32_t bit_synchronization_time_limit_s{70U};
66  uint32_t vector_length{0U};
67  uint32_t smoother_length{10U};
68  uint32_t code_length_chips{0U};
69  uint32_t code_samples_per_chip{0U};
70  uint32_t extend_fpga_integration_periods{1};
71  uint32_t fpga_integration_period{0};
72 
73  int32_t fll_filter_order{1};
74  int32_t pll_filter_order{3};
75  int32_t dll_filter_order{2};
76  int32_t extend_correlation_symbols{1};
77  int32_t cn0_samples{0};
78  int32_t cn0_min{0};
79  int32_t max_code_lock_fail{0};
80  int32_t max_carrier_lock_fail{0};
81  int32_t cn0_smoother_samples{200};
82  int32_t carrier_lock_test_smoother_samples{25};
83  // int32_t max_lock_fail;
84 
85  int32_t* ca_codes{nullptr};
86  int32_t* data_codes{nullptr};
87 
88  char signal[3]{};
89  char system{'G'};
90 
91  bool extended_correlation_in_fpga{false};
92  bool track_pilot{true};
93  bool enable_doppler_correction{false};
94  bool enable_fll_pull_in{false};
95  bool enable_fll_steady_state{false};
96  bool carrier_aiding{true};
97  bool high_dyn{false};
98  bool dump{false};
99  bool dump_mat{true};
100 };
101 
102 
103 /** \} */
104 /** \} */
105 #endif // GNSS_SDR_DLL_PLL_CONF_FPGA_H
This abstract class represents an interface to configuration parameters.
This class represents an interface to configuration parameters.