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();