mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-19 13:43:03 +00:00
Improve PVT error detection
This commit is contained in:
parent
7b142286f4
commit
5292f0d8fc
@ -2128,6 +2128,7 @@ int rtklib_pvt_gs::work(int noutput_items, gr_vector_const_void_star& input_item
|
|||||||
// #### solve PVT and store the corrected observable set
|
// #### solve PVT and store the corrected observable set
|
||||||
if (d_internal_pvt_solver->get_PVT(d_gnss_observables_map, false))
|
if (d_internal_pvt_solver->get_PVT(d_gnss_observables_map, false))
|
||||||
{
|
{
|
||||||
|
d_pvt_errors_counter = 0; // Reset consecutive PVT error counter
|
||||||
const double Rx_clock_offset_s = d_internal_pvt_solver->get_time_offset_s();
|
const double Rx_clock_offset_s = d_internal_pvt_solver->get_time_offset_s();
|
||||||
|
|
||||||
// **************** time tags ****************
|
// **************** time tags ****************
|
||||||
@ -2211,7 +2212,6 @@ int rtklib_pvt_gs::work(int noutput_items, gr_vector_const_void_star& input_item
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
d_pvt_errors_counter = 0;
|
|
||||||
d_rx_time = d_gnss_observables_map.begin()->second.RX_time;
|
d_rx_time = d_gnss_observables_map.begin()->second.RX_time;
|
||||||
current_RX_time_ms = static_cast<uint32_t>(d_rx_time * 1000.0);
|
current_RX_time_ms = static_cast<uint32_t>(d_rx_time * 1000.0);
|
||||||
if (current_RX_time_ms % d_output_rate_ms == 0)
|
if (current_RX_time_ms % d_output_rate_ms == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user