GNSS-SDR  0.0.13
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  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
9  *
10  * GNSS-SDR is a software defined Global Navigation
11  * Satellite Systems receiver
12  *
13  * This file is part of GNSS-SDR.
14  *
15  * SPDX-License-Identifier: GPL-3.0-or-later
16  *
17  * -----------------------------------------------------------------------------
18  */
19 
20 #ifndef GNSS_SDR_TRUE_OBSERVABLES_READER_H
21 #define GNSS_SDR_TRUE_OBSERVABLES_READER_H
22 
23 #include <cstdint>
24 #include <fstream>
25 #include <string>
26 #include <vector>
27 
29 {
30 public:
32  bool read_binary_obs();
33  bool restart();
34  int64_t num_epochs();
35  bool open_obs_file(std::string out_file);
36 
37  double gps_time_sec[12];
38  double doppler_l1_hz[12];
39  double acc_carrier_phase_l1_cycles[12];
40  double dist_m[12];
41  double true_dist_m[12];
42  double carrier_phase_l1_cycles[12];
43  double prn[12];
44 
45 private:
46  std::string d_dump_filename;
47  std::ifstream d_dump_file;
48 };
49 
50 #endif // GNSS_SDR_TRUE_OBSERVABLES_READER_H