mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +00:00
Improve loops
This commit is contained in:
parent
657a7298f3
commit
ab40201783
@ -651,12 +651,10 @@ rtklib_pvt_gs::~rtklib_pvt_gs()
|
||||
{
|
||||
ofs.open(file_name.c_str(), std::ofstream::trunc | std::ofstream::out);
|
||||
boost::archive::xml_oarchive xml(ofs);
|
||||
// Annotate as GPS week number
|
||||
for (auto gal_eph_iter = d_internal_pvt_solver->galileo_ephemeris_map.begin();
|
||||
gal_eph_iter != d_internal_pvt_solver->galileo_ephemeris_map.end();
|
||||
++gal_eph_iter)
|
||||
// Annotate as full GPS week number
|
||||
for (auto& gal_eph_iter : d_internal_pvt_solver->galileo_ephemeris_map)
|
||||
{
|
||||
gal_eph_iter->second.WN += 1024;
|
||||
gal_eph_iter.second.WN += 1024;
|
||||
}
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_gal_ephemeris_map", d_internal_pvt_solver->galileo_ephemeris_map);
|
||||
LOG(INFO) << "Saved Galileo E1 Ephemeris map data";
|
||||
|
@ -414,12 +414,10 @@ bool Gnss_Sdr_Supl_Client::load_gal_ephemeris_xml(const std::string& file_name)
|
||||
gal_ephemeris_map.clear();
|
||||
xml >> boost::serialization::make_nvp("GNSS-SDR_gal_ephemeris_map", this->gal_ephemeris_map);
|
||||
LOG(INFO) << "Loaded Ephemeris map data with " << this->gal_ephemeris_map.size() << " satellites";
|
||||
// Convert to GPS week number
|
||||
for (auto gal_eph_iter = this->gal_ephemeris_map.begin();
|
||||
gal_eph_iter != this->gal_ephemeris_map.end();
|
||||
++gal_eph_iter)
|
||||
// Convert to full GPS week number
|
||||
for (auto& gal_eph_iter : this->gal_ephemeris_map)
|
||||
{
|
||||
gal_eph_iter->second.WN -= 1024;
|
||||
gal_eph_iter.second.WN -= 1024;
|
||||
}
|
||||
}
|
||||
catch (std::exception& e)
|
||||
|
Loading…
Reference in New Issue
Block a user