GNSS-SDR  0.0.14
An Open Source GNSS Software Defined Receiver
acq_conf.h
Go to the documentation of this file.
1 /*!
2  * \file acq_conf.h
3  * \brief Class that contains all the configuration parameters for generic
4  * acquisition block based on the PCPS algorithm.
5  * \author Carles Fernandez, 2018. cfernandez(at)cttc.es
6  *
7  * -----------------------------------------------------------------------------
8  *
9  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
10  * This file is part of GNSS-SDR.
11  *
12  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
13  * SPDX-License-Identifier: GPL-3.0-or-later
14  *
15  * -----------------------------------------------------------------------------
16  */
17 
18 #ifndef GNSS_SDR_ACQ_CONF_H
19 #define GNSS_SDR_ACQ_CONF_H
20 
22 #include <cstdint>
23 #include <string>
24 
25 /** \addtogroup Acquisition
26  * \{ */
27 /** \addtogroup acquisition_libs acquisition_libs
28  * Library with utilities for GNSS signal acquisition
29  * \{ */
30 
31 
32 class Acq_Conf
33 {
34 public:
35  Acq_Conf();
36 
37  void SetFromConfiguration(const ConfigurationInterface *configuration, const std::string &role, double chip_rate, double opt_freq);
38 
39  /* PCPS Acquisition configuration */
40  std::string item_type;
41  std::string dump_filename;
42 
43  int64_t fs_in;
44  int64_t resampled_fs;
45 
46  size_t it_size;
47 
48  float doppler_step;
49  float samples_per_ms;
50  float doppler_step2;
51  float pfa;
52  float pfa2;
53  float samples_per_code;
54  float resampler_ratio;
55 
56  uint32_t sampled_ms;
57  uint32_t ms_per_code;
58  uint32_t samples_per_chip;
59  uint32_t chips_per_second;
60  uint32_t max_dwells;
61  uint32_t num_doppler_bins_step2;
62  uint32_t resampler_latency_samples;
63  uint32_t dump_channel;
64  int32_t doppler_max;
65  int32_t doppler_min;
66 
67  bool bit_transition_flag;
68  bool use_CFAR_algorithm_flag;
69  bool dump;
70  bool blocking;
71  bool blocking_on_standby; // enable it only for unit testing to avoid sample consume on idle status
72  bool make_2_steps;
73  bool use_automatic_resampler;
74  bool enable_monitor_output;
75 
76 private:
77  void SetDerivedParams();
78 
79  void ConfigureAutomaticResampler(double opt_freq);
80 };
81 
82 
83 /** \} */
84 /** \} */
85 #endif // GNSS_SDR_ACQ_CONF_H
This abstract class represents an interface to configuration parameters.
This class represents an interface to configuration parameters.