mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-09-29 23:41:05 +00:00
Fix reporting of Galileo almanac data
This commit is contained in:
parent
d4ede85fd7
commit
571738f090
@ -563,6 +563,7 @@ void ControlThread::assist_GNSS()
|
|||||||
std::shared_ptr<Gps_Almanac> tmp_obj = std::make_shared<Gps_Almanac>(gps_alm_iter->second);
|
std::shared_ptr<Gps_Almanac> tmp_obj = std::make_shared<Gps_Almanac>(gps_alm_iter->second);
|
||||||
flowgraph_->send_telemetry_msg(pmt::make_any(tmp_obj));
|
flowgraph_->send_telemetry_msg(pmt::make_any(tmp_obj));
|
||||||
}
|
}
|
||||||
|
supl_client_ephemeris_.save_gps_almanac_xml("gps_almanac_map.xml", supl_client_ephemeris_.gps_almanac_map);
|
||||||
if (supl_client_ephemeris_.gps_iono.valid == true)
|
if (supl_client_ephemeris_.gps_iono.valid == true)
|
||||||
{
|
{
|
||||||
std::cout << "SUPL: Received GPS Ionosphere model parameters" << std::endl;
|
std::cout << "SUPL: Received GPS Ionosphere model parameters" << std::endl;
|
||||||
@ -937,11 +938,10 @@ std::vector<std::pair<int, Gnss_Satellite>> ControlThread::get_visible_sats(time
|
|||||||
arma::vec r_sat_eb_e = arma::vec{r_sat[0], r_sat[1], r_sat[2]};
|
arma::vec r_sat_eb_e = arma::vec{r_sat[0], r_sat[1], r_sat[2]};
|
||||||
arma::vec dx = r_sat_eb_e - r_eb_e;
|
arma::vec dx = r_sat_eb_e - r_eb_e;
|
||||||
topocent(&Az, &El, &dist_m, r_eb_e, dx);
|
topocent(&Az, &El, &dist_m, r_eb_e, dx);
|
||||||
std::cout << "Using Galileo Almanac: Sat " << it->second.i_satellite_PRN << " Az: " << Az << " El: " << El << std::endl;
|
|
||||||
// push sat
|
// push sat
|
||||||
if (El > 0)
|
if (El > 0)
|
||||||
{
|
{
|
||||||
std::cout << "Using GPS Almanac: Sat " << it->second.i_satellite_PRN << " Az: " << Az << " El: " << El << std::endl;
|
std::cout << "Using Galileo Almanac: Sat " << it->second.i_satellite_PRN << " Az: " << Az << " El: " << El << std::endl;
|
||||||
available_satellites.push_back(std::pair<int, Gnss_Satellite>(floor(El),
|
available_satellites.push_back(std::pair<int, Gnss_Satellite>(floor(El),
|
||||||
(Gnss_Satellite(std::string("Galileo"), it->second.i_satellite_PRN))));
|
(Gnss_Satellite(std::string("Galileo"), it->second.i_satellite_PRN))));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user