From 20302ed28fc7c8fcfa5dd980a05f2e4c3d005b8b Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 25 Oct 2018 00:52:29 +0200 Subject: [PATCH] Read Almanac data from AGNSS --- src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc index 3030d536f..94f040bd7 100644 --- a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc +++ b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc @@ -201,6 +201,14 @@ void rtklib_pvt_cc::msg_handler_telemetry(pmt::pmt_t msg) if (sv3.i_satellite_PRN != 0) d_ls_pvt->galileo_almanac_map[sv3.i_satellite_PRN] = sv3; DLOG(INFO) << "New Galileo Almanac data have arrived "; } + else if (pmt::any_ref(msg).type() == typeid(std::shared_ptr)) + { + // ### Galileo Almanac ### + std::shared_ptr galileo_alm; + galileo_alm = boost::any_cast>(pmt::any_ref(msg)); + // update/insert new almanac record to the global almanac map + d_ls_pvt->galileo_almanac_map[galileo_alm->i_satellite_PRN] = *galileo_alm; + } // **************** GLONASS GNAV Telemetry ************************** else if (pmt::any_ref(msg).type() == typeid(std::shared_ptr))