GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
true_observables_reader.h
Go to the documentation of this file.
1 /*!
2  * \file true_observables_reader.h
3  * \brief Helper file for unit testing
4  * \author Javier Arribas, 2017. jarribas(at)cttc.es
5  *
6  * -----------------------------------------------------------------------------
7  *
8  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
9  * This file is part of GNSS-SDR.
10  *
11  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
12  * SPDX-License-Identifier: GPL-3.0-or-later
13  *
14  * -----------------------------------------------------------------------------
15  */
16 
17 #ifndef GNSS_SDR_TRUE_OBSERVABLES_READER_H
18 #define GNSS_SDR_TRUE_OBSERVABLES_READER_H
19 
20 #include <cstdint>
21 #include <fstream>
22 #include <string>
23 #include <vector>
24 
26 {
27 public:
29  bool read_binary_obs();
30  bool restart();
31  int64_t num_epochs();
32  bool open_obs_file(std::string out_file);
33 
34  double gps_time_sec[12];
35  double doppler_l1_hz[12];
36  double acc_carrier_phase_l1_cycles[12];
37  double dist_m[12];
38  double true_dist_m[12];
39  double carrier_phase_l1_cycles[12];
40  double prn[12];
41 
42 private:
43  std::string d_dump_filename;
44  std::ifstream d_dump_file;
45 };
46 
47 #endif // GNSS_SDR_TRUE_OBSERVABLES_READER_H