GNSS-SDR  0.0.19
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  * 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_ACQUISITION_DUMP_READER_H
19 #define GNSS_SDR_ACQUISITION_DUMP_READER_H
20 
21 #include <cstdint>
22 #include <string>
23 #include <vector>
24 
26 {
27 public:
28  Acquisition_Dump_Reader(const std::string& basename,
29  unsigned int sat,
30  unsigned int doppler_max,
31  unsigned int doppler_step,
32  unsigned int samples_per_code,
33  int channel = 0,
34  int execution = 1);
35 
36  Acquisition_Dump_Reader(const std::string& basename,
37  int channel = 0,
38  int execution = 1);
39 
40  Acquisition_Dump_Reader(const Acquisition_Dump_Reader& other) = default; //!< Copy constructor
41  Acquisition_Dump_Reader& operator=(const Acquisition_Dump_Reader& other); //!< Copy assignment operator
42  Acquisition_Dump_Reader(Acquisition_Dump_Reader&& other) noexcept; //!< Move constructor
43  Acquisition_Dump_Reader& operator=(Acquisition_Dump_Reader&& other) noexcept; //!< Move assignment operator
44 
45  bool read_binary_acq();
46 
47  std::vector<int> doppler;
48  std::vector<unsigned int> samples;
49  std::vector<std::vector<float> > mag;
50  float acq_doppler_hz{};
51  float acq_delay_samples{};
52  float test_statistic{};
53  float input_power{};
54  float threshold{};
55  int positive_acq{};
56  unsigned int PRN{};
57  unsigned int num_dwells{};
58  uint64_t sample_counter{};
59 
60 private:
61  std::string d_basename;
62  std::string d_dump_filename;
63  unsigned int d_sat{};
64  unsigned int d_doppler_max{};
65  unsigned int d_doppler_step{};
66  unsigned int d_samples_per_code{};
67  unsigned int d_num_doppler_bins{};
68 };
69 
70 #endif // GNSS_SDR_ACQUISITION_DUMP_READER_H
Acquisition_Dump_Reader & operator=(const Acquisition_Dump_Reader &other)
Copy assignment operator.