From 6fe7ec9d713e5352fb5fe0fc0e0f2651976ca244 Mon Sep 17 00:00:00 2001 From: Javier Arribas Date: Fri, 6 Sep 2019 18:19:40 +0200 Subject: [PATCH] Fix last commit --- src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc index c00144f6b..8bf80913e 100644 --- a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc +++ b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc @@ -2038,7 +2038,14 @@ int rtklib_pvt_gs::work(int noutput_items, gr_vector_const_void_star& input_item } else { - flag_compute_pvt_output = false; + d_rx_time = gnss_observables_map.begin()->second.RX_time; + current_RX_time_ms = static_cast(d_rx_time * 1000.0); + if (current_RX_time_ms % d_output_rate_ms == 0) + { + flag_compute_pvt_output = true; + // std::cout.precision(17); + // std::cout << "current_RX_time: " << current_RX_time << " map time: " << gnss_observables_map.begin()->second.RX_time << std::endl; + } flag_pvt_valid = true; } }