From a154f90bf5259323b04bc4051afa7fc3dd52154e Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Tue, 19 Feb 2019 18:20:58 +0100 Subject: [PATCH] Fix bug in telemetry message handling --- src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc index ed531f0f2..044d50927 100644 --- a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc +++ b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc @@ -233,7 +233,7 @@ void rtklib_pvt_cc::msg_handler_telemetry(const pmt::pmt_t& msg) } // ************* BeiDou telemetry ***************** - if (pmt::any_ref(msg).type() == typeid(std::shared_ptr)) + else if (pmt::any_ref(msg).type() == typeid(std::shared_ptr)) { // ### Beidou EPHEMERIS ### std::shared_ptr bds_dnav_eph; @@ -317,6 +317,7 @@ std::map rtklib_pvt_cc::get_beidou_dnav_almanac_map() return d_pvt_solver->beidou_dnav_almanac_map; } + void rtklib_pvt_cc::clear_ephemeris() { d_pvt_solver->gps_ephemeris_map.clear();