mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-11-10 20:10:05 +00:00
Avoid possible runtime error when PVT.enable_rx_clock_correction=true
This commit is contained in:
parent
9ffb7e2dc8
commit
41dd928689
@ -2173,7 +2173,7 @@ int rtklib_pvt_gs::work(int noutput_items, gr_vector_const_void_star& input_item
|
||||
d_gnss_observables_map_t1 = d_gnss_observables_map;
|
||||
|
||||
// ### select the rx_time and interpolate observables at that time
|
||||
if (!d_gnss_observables_map_t0.empty())
|
||||
if (!d_gnss_observables_map_t0.empty() && !d_gnss_observables_map_t1.empty())
|
||||
{
|
||||
const auto t0_int_ms = static_cast<uint32_t>(d_gnss_observables_map_t0.cbegin()->second.RX_time * 1000.0);
|
||||
const uint32_t adjust_next_obs_interval_ms = d_observable_interval_ms - t0_int_ms % d_observable_interval_ms;
|
||||
|
Loading…
Reference in New Issue
Block a user