From e6af1a7e4484e4529c2995eec0b09c704fcd0e99 Mon Sep 17 00:00:00 2001 From: Javier Arribas Date: Fri, 16 Aug 2019 18:24:01 +0200 Subject: [PATCH] Simplifiying the RTKLIB error log and avoid msg repetitions --- src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc | 8 ++++---- src/algorithms/PVT/libs/rtklib_solver.cc | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc index 65230c0a1..f9cd859a6 100644 --- a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc +++ b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc @@ -1940,10 +1940,10 @@ int rtklib_pvt_gs::work(int noutput_items, gr_vector_const_void_star& input_item } } // debug code - // else - // { - // LOG(INFO) << "Internal PVT solver error"; - // } + // else + // { + // DLOG(INFO) << "Internal PVT solver error"; + // } // compute on the fly PVT solution if (flag_compute_pvt_output == true) diff --git a/src/algorithms/PVT/libs/rtklib_solver.cc b/src/algorithms/PVT/libs/rtklib_solver.cc index 345d0ab58..a58998a7c 100644 --- a/src/algorithms/PVT/libs/rtklib_solver.cc +++ b/src/algorithms/PVT/libs/rtklib_solver.cc @@ -925,8 +925,8 @@ bool Rtklib_Solver::get_PVT(const std::map &gnss_observables_ if (result == 0) { - LOG(INFO) << "RTKLIB rtkpos error"; - DLOG(INFO) << "RTKLIB rtkpos error message: " << rtk_.errbuf; + LOG(INFO) << "RTKLIB rtkpos error: " << rtk_.errbuf; + rtk_.neb = 0; //clear error buffer to avoid repeating the error message this->set_time_offset_s(0.0); // reset rx time estimation this->set_num_valid_observations(0); }