GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
tracking_true_obs_reader.h
Go to the documentation of this file.
1 /*!
2  * \file tracking_true_obs_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_TRACKING_TRUE_OBS_READER_H
18 #define GNSS_SDR_TRACKING_TRUE_OBS_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  void close_obs_file();
34  bool d_dump;
35 
36  double signal_timestamp_s;
37  double acc_carrier_phase_cycles;
38  double doppler_l1_hz;
39  double prn_delay_chips;
40  double tow;
41 
42 private:
43  std::string d_dump_filename;
44  std::ifstream d_dump_file;
45 };
46 
47 #endif // GNSS_SDR_RACKING_TRUE_OBS_READER_H