GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
acquisition_dump_reader.h
Go to the documentation of this file.
1 /*!
2  * \file acquisition_dump_reader.h
3  * \brief Helper file for unit testing
4  * \authors Carles Fernandez-Prades, 2017. cfernandez(at)cttc.es
5  * Antonio Ramos, 2018. antonio.ramos(at)cttc.es
6  *
7  * -----------------------------------------------------------------------------
8  *
9  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
10  *
11  * GNSS-SDR is a software defined Global Navigation
12  * Satellite Systems receiver
13  *
14  * This file is part of GNSS-SDR.
15  *
16  * SPDX-License-Identifier: GPL-3.0-or-later
17  *
18  * -----------------------------------------------------------------------------
19  */
20 
21 #ifndef GNSS_SDR_ACQUISITION_DUMP_READER_H
22 #define GNSS_SDR_ACQUISITION_DUMP_READER_H
23 
24 #include <cstdint>
25 #include <string>
26 #include <vector>
27 
29 {
30 public:
31  Acquisition_Dump_Reader(const std::string& basename,
32  unsigned int sat,
33  unsigned int doppler_max,
34  unsigned int doppler_step,
35  unsigned int samples_per_code,
36  int channel = 0,
37  int execution = 1);
38 
39  Acquisition_Dump_Reader(const std::string& basename,
40  int channel = 0,
41  int execution = 1);
42 
43  ~Acquisition_Dump_Reader() = default;
44 
45  Acquisition_Dump_Reader(const Acquisition_Dump_Reader& other) noexcept; //!< Copy constructor
46  Acquisition_Dump_Reader& operator=(const Acquisition_Dump_Reader&); //!< Copy assignment operator
47  Acquisition_Dump_Reader(Acquisition_Dump_Reader&& other) noexcept; //!< Move constructor
48  Acquisition_Dump_Reader& operator=(Acquisition_Dump_Reader&& other) noexcept; //!< Move assignment operator
49 
50  bool read_binary_acq();
51 
52  std::vector<int> doppler;
53  std::vector<unsigned int> samples;
54  std::vector<std::vector<float> > mag;
55  float acq_doppler_hz{};
56  float acq_delay_samples{};
57  float test_statistic{};
58  float input_power{};
59  float threshold{};
60  int positive_acq{};
61  unsigned int PRN{};
62  unsigned int num_dwells{};
63  uint64_t sample_counter{};
64 
65 private:
66  std::string d_basename;
67  unsigned int d_sat{};
68  unsigned int d_doppler_max{};
69  unsigned int d_doppler_step{};
70  unsigned int d_samples_per_code{};
71  unsigned int d_num_doppler_bins{};
72  std::string d_dump_filename;
73 };
74 
75 #endif // GNSS_SDR_ACQUISITION_DUMP_READER_H
Acquisition_Dump_Reader & operator=(const Acquisition_Dump_Reader &)
Copy assignment operator.