Fix building

This commit is contained in:
Carles Fernandez 2021-12-06 19:11:35 +01:00
parent 80ce6273bc
commit 4e1ee0f49b
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 9 additions and 8 deletions

View File

@ -168,7 +168,8 @@ rtklib_pvt_gs::rtklib_pvt_gs(uint32_t nchannels,
d_show_local_time_zone(conf_.show_local_time_zone),
d_waiting_obs_block_rx_clock_offset_correction_msg(false),
d_enable_rx_clock_correction(conf_.enable_rx_clock_correction),
d_an_printer_enabled(conf_.an_output_enabled)
d_an_printer_enabled(conf_.an_output_enabled),
d_log_timetag(conf_.log_source_timetag)
{
// Send feedback message to observables block with the receiver clock offset
this->message_port_register_out(pmt::mp("pvt_to_observables"));
@ -560,10 +561,9 @@ rtklib_pvt_gs::rtklib_pvt_gs(uint32_t nchannels,
tracelevel(conf_.rtk_trace_level);
// timetag
d_log_timetag = conf_.log_source_timetag;
if (d_log_timetag)
{
d_log_timetag_file = std::fstream(conf_.log_source_timetag_file, std::ios::out | std::ios::binary);
d_log_timetag_file.open(conf_.log_source_timetag_file, std::ios::out | std::ios::binary);
std::cout << "Log PVT timetag metadata enabled, log file: " << conf_.log_source_timetag_file << "\n";
}
d_start = std::chrono::system_clock::now();

View File

@ -30,12 +30,13 @@
#include <cstddef> // for size_t
#include <cstdint> // for int32_t
#include <ctime> // for time_t
#include <fstream> // for std::fstream
#include <map> // for map
#include <memory> // for shared_ptr, unique_ptr
#include <queue>
#include <string> // for string
#include <sys/types.h> // for key_t
#include <vector> // for vector
#include <queue> // for std::queue
#include <string> // for string
#include <sys/types.h> // for key_t
#include <vector> // for vector
/** \addtogroup PVT
* \{ */
@ -167,7 +168,6 @@ private:
bool save_gnss_synchro_map_xml(const std::string& file_name); // debug helper function
bool load_gnss_synchro_map_xml(const std::string& file_name); // debug helper function
bool d_log_timetag;
std::fstream d_log_timetag_file;
std::shared_ptr<Rtklib_Solver> d_internal_pvt_solver;
@ -286,6 +286,7 @@ private:
bool d_enable_rx_clock_correction;
bool d_enable_has_messages;
bool d_an_printer_enabled;
bool d_log_timetag;
};