mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +00:00
Simpler API for the Rinex_Printer
This commit is contained in:
parent
54dfb9bbe9
commit
f2b05e686b
@ -342,6 +342,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
{
|
||||
rinex_obs_header(obsFile, gps_ephemeris_iter->second, rx_time);
|
||||
rinex_nav_header(navFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second);
|
||||
output_navfilename.push_back(navfilename);
|
||||
log_rinex_nav(navFile, pvt_solver->gps_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -352,6 +353,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string signal("2S");
|
||||
rinex_obs_header(obsFile, gps_cnav_ephemeris_iter->second, rx_time, signal);
|
||||
rinex_nav_header(navFile, pvt_solver->gps_cnav_iono, pvt_solver->gps_cnav_utc_model);
|
||||
output_navfilename.push_back(navfilename);
|
||||
log_rinex_nav(navFile, pvt_solver->gps_cnav_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -362,6 +364,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string signal("L5");
|
||||
rinex_obs_header(obsFile, gps_cnav_ephemeris_iter->second, rx_time, signal);
|
||||
rinex_nav_header(navFile, pvt_solver->gps_cnav_iono, pvt_solver->gps_cnav_utc_model);
|
||||
output_navfilename.push_back(navfilename);
|
||||
log_rinex_nav(navFile, pvt_solver->gps_cnav_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -371,6 +374,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
{
|
||||
rinex_obs_header(obsFile, galileo_ephemeris_iter->second, rx_time);
|
||||
rinex_nav_header(navGalFile, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navGalfilename);
|
||||
log_rinex_nav(navGalFile, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -381,6 +385,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string signal("5X");
|
||||
rinex_obs_header(obsFile, galileo_ephemeris_iter->second, rx_time, signal);
|
||||
rinex_nav_header(navGalFile, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navGalfilename);
|
||||
log_rinex_nav(navGalFile, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -391,6 +396,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string signal("7X");
|
||||
rinex_obs_header(obsFile, galileo_ephemeris_iter->second, rx_time, signal);
|
||||
rinex_nav_header(navGalFile, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navGalfilename);
|
||||
log_rinex_nav(navGalFile, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -401,6 +407,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string signal("1C 2S");
|
||||
rinex_obs_header(obsFile, gps_ephemeris_iter->second, gps_cnav_ephemeris_iter->second, rx_time, signal);
|
||||
rinex_nav_header(navFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second);
|
||||
output_navfilename.push_back(navfilename);
|
||||
log_rinex_nav(navFile, pvt_solver->gps_cnav_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -411,6 +418,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string signal("1C L5");
|
||||
rinex_obs_header(obsFile, gps_ephemeris_iter->second, gps_cnav_ephemeris_iter->second, rx_time, signal);
|
||||
rinex_nav_header(navFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second);
|
||||
output_navfilename.push_back(navfilename);
|
||||
log_rinex_nav(navFile, pvt_solver->gps_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -421,6 +429,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gal_signal("1B");
|
||||
rinex_obs_header(obsFile, gps_ephemeris_iter->second, galileo_ephemeris_iter->second, rx_time, gal_signal);
|
||||
rinex_nav_header(navMixFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navMixfilename);
|
||||
log_rinex_nav(navMixFile, pvt_solver->gps_ephemeris_map, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -431,6 +440,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gal_signal("5X");
|
||||
rinex_obs_header(obsFile, gps_ephemeris_iter->second, galileo_ephemeris_iter->second, rx_time, gal_signal);
|
||||
rinex_nav_header(navMixFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navMixfilename);
|
||||
log_rinex_nav(navMixFile, pvt_solver->gps_ephemeris_map, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -441,6 +451,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gal_signal("7X");
|
||||
rinex_obs_header(obsFile, gps_ephemeris_iter->second, galileo_ephemeris_iter->second, rx_time, gal_signal);
|
||||
rinex_nav_header(navMixFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navMixfilename);
|
||||
log_rinex_nav(navMixFile, pvt_solver->gps_ephemeris_map, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -452,6 +463,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gps_signal("L5");
|
||||
rinex_obs_header(obsFile, gps_cnav_ephemeris_iter->second, galileo_ephemeris_iter->second, rx_time, gps_signal, gal_signal);
|
||||
rinex_nav_header(navMixFile, pvt_solver->gps_cnav_iono, pvt_solver->gps_cnav_utc_model, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navMixfilename);
|
||||
log_rinex_nav(navMixFile, pvt_solver->gps_cnav_ephemeris_map, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -462,6 +474,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gal_signal("1B 5X");
|
||||
rinex_obs_header(obsFile, galileo_ephemeris_iter->second, rx_time, gal_signal);
|
||||
rinex_nav_header(navGalFile, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navGalfilename);
|
||||
log_rinex_nav(navGalFile, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -472,6 +485,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gal_signal("1B 7X");
|
||||
rinex_obs_header(obsFile, galileo_ephemeris_iter->second, rx_time, gal_signal);
|
||||
rinex_nav_header(navGalFile, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navGalfilename);
|
||||
log_rinex_nav(navGalFile, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -482,6 +496,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string signal("1G");
|
||||
rinex_obs_header(obsFile, glonass_gnav_ephemeris_iter->second, rx_time, signal);
|
||||
rinex_nav_header(navGloFile, pvt_solver->glonass_gnav_utc_model, glonass_gnav_ephemeris_iter->second);
|
||||
output_navfilename.push_back(navGlofilename);
|
||||
log_rinex_nav(navGloFile, pvt_solver->glonass_gnav_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -492,6 +507,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string signal("2G");
|
||||
rinex_obs_header(obsFile, glonass_gnav_ephemeris_iter->second, rx_time, signal);
|
||||
rinex_nav_header(navGloFile, pvt_solver->glonass_gnav_utc_model, glonass_gnav_ephemeris_iter->second);
|
||||
output_navfilename.push_back(navGlofilename);
|
||||
log_rinex_nav(navGloFile, pvt_solver->glonass_gnav_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -502,6 +518,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string signal("1G 2G");
|
||||
rinex_obs_header(obsFile, glonass_gnav_ephemeris_iter->second, rx_time, signal);
|
||||
rinex_nav_header(navGloFile, pvt_solver->glonass_gnav_utc_model, glonass_gnav_ephemeris_iter->second);
|
||||
output_navfilename.push_back(navGlofilename);
|
||||
log_rinex_nav(navGloFile, pvt_solver->glonass_gnav_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -515,11 +532,14 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
{
|
||||
rinex_nav_header(navMixFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second, pvt_solver->glonass_gnav_utc_model, pvt_solver->glonass_gnav_almanac);
|
||||
log_rinex_nav(navMixFile, pvt_solver->gps_ephemeris_map, pvt_solver->glonass_gnav_ephemeris_map);
|
||||
output_navfilename.push_back(navMixfilename);
|
||||
}
|
||||
if (d_version == 2)
|
||||
{
|
||||
rinex_nav_header(navFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second);
|
||||
rinex_nav_header(navGloFile, pvt_solver->glonass_gnav_utc_model, glonass_gnav_ephemeris_iter->second);
|
||||
output_navfilename.push_back(navfilename);
|
||||
output_navfilename.push_back(navGlofilename);
|
||||
log_rinex_nav(navFile, pvt_solver->gps_ephemeris_map);
|
||||
log_rinex_nav(navGloFile, pvt_solver->glonass_gnav_ephemeris_map);
|
||||
}
|
||||
@ -533,6 +553,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gal_signal("1B");
|
||||
rinex_obs_header(obsFile, galileo_ephemeris_iter->second, glonass_gnav_ephemeris_iter->second, rx_time, glo_signal, gal_signal);
|
||||
rinex_nav_header(navMixFile, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model, pvt_solver->glonass_gnav_utc_model, pvt_solver->glonass_gnav_almanac);
|
||||
output_navfilename.push_back(navMixfilename);
|
||||
log_rinex_nav(navMixFile, pvt_solver->galileo_ephemeris_map, pvt_solver->glonass_gnav_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -543,6 +564,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string glo_signal("1G");
|
||||
rinex_obs_header(obsFile, gps_cnav_ephemeris_iter->second, glonass_gnav_ephemeris_iter->second, rx_time, glo_signal);
|
||||
rinex_nav_header(navMixFile, pvt_solver->gps_cnav_iono, pvt_solver->gps_cnav_utc_model, pvt_solver->glonass_gnav_utc_model, pvt_solver->glonass_gnav_almanac);
|
||||
output_navfilename.push_back(navfilename);
|
||||
log_rinex_nav(navMixFile, pvt_solver->gps_cnav_ephemeris_map, pvt_solver->glonass_gnav_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -555,12 +577,15 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
if (d_version == 3)
|
||||
{
|
||||
rinex_nav_header(navMixFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second, pvt_solver->glonass_gnav_utc_model, pvt_solver->glonass_gnav_almanac);
|
||||
output_navfilename.push_back(navfilename);
|
||||
log_rinex_nav(navMixFile, pvt_solver->gps_ephemeris_map, pvt_solver->glonass_gnav_ephemeris_map);
|
||||
}
|
||||
if (d_version == 2)
|
||||
{
|
||||
rinex_nav_header(navFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second);
|
||||
rinex_nav_header(navGloFile, pvt_solver->glonass_gnav_utc_model, glonass_gnav_ephemeris_iter->second);
|
||||
output_navfilename.push_back(navfilename);
|
||||
output_navfilename.push_back(navGlofilename);
|
||||
log_rinex_nav(navFile, pvt_solver->gps_ephemeris_map);
|
||||
log_rinex_nav(navGloFile, pvt_solver->glonass_gnav_ephemeris_map);
|
||||
}
|
||||
@ -574,6 +599,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gal_signal("1B");
|
||||
rinex_obs_header(obsFile, galileo_ephemeris_iter->second, glonass_gnav_ephemeris_iter->second, rx_time, glo_signal, gal_signal);
|
||||
rinex_nav_header(navMixFile, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model, pvt_solver->glonass_gnav_utc_model, pvt_solver->glonass_gnav_almanac);
|
||||
output_navfilename.push_back(navMixfilename);
|
||||
log_rinex_nav(navMixFile, pvt_solver->galileo_ephemeris_map, pvt_solver->glonass_gnav_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -584,6 +610,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string glo_signal("2G");
|
||||
rinex_obs_header(obsFile, gps_cnav_ephemeris_iter->second, glonass_gnav_ephemeris_iter->second, rx_time, glo_signal);
|
||||
rinex_nav_header(navMixFile, pvt_solver->gps_cnav_iono, pvt_solver->gps_cnav_utc_model, pvt_solver->glonass_gnav_utc_model, pvt_solver->glonass_gnav_almanac);
|
||||
output_navfilename.push_back(navfilename);
|
||||
log_rinex_nav(navMixFile, pvt_solver->gps_cnav_ephemeris_map, pvt_solver->glonass_gnav_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -597,6 +624,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gps_signal("1C L5");
|
||||
rinex_obs_header(obsFile, gps_ephemeris_iter->second, gps_cnav_ephemeris_iter->second, galileo_ephemeris_iter->second, rx_time, gps_signal, gal_signal);
|
||||
rinex_nav_header(navMixFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navMixfilename);
|
||||
log_rinex_nav(navMixFile, pvt_solver->gps_ephemeris_map, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -608,6 +636,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gal_signal("1B 5X");
|
||||
rinex_obs_header(obsFile, gps_ephemeris_iter->second, galileo_ephemeris_iter->second, rx_time, gal_signal);
|
||||
rinex_nav_header(navMixFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navMixfilename);
|
||||
log_rinex_nav(navMixFile, pvt_solver->gps_ephemeris_map, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -617,6 +646,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
{
|
||||
rinex_obs_header(obsFile, galileo_ephemeris_iter->second, rx_time);
|
||||
rinex_nav_header(navGalFile, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navGalfilename);
|
||||
log_rinex_nav(navGalFile, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -627,6 +657,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string signal("5X");
|
||||
rinex_obs_header(obsFile, galileo_ephemeris_iter->second, rx_time, signal);
|
||||
rinex_nav_header(navGalFile, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navGalfilename);
|
||||
log_rinex_nav(navGalFile, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -637,6 +668,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string signal("7X");
|
||||
rinex_obs_header(obsFile, galileo_ephemeris_iter->second, rx_time, signal);
|
||||
rinex_nav_header(navGalFile, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navGalfilename);
|
||||
log_rinex_nav(navGalFile, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -647,6 +679,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gal_signal("1B 5X");
|
||||
rinex_obs_header(obsFile, galileo_ephemeris_iter->second, rx_time, gal_signal);
|
||||
rinex_nav_header(navGalFile, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navGalfilename);
|
||||
log_rinex_nav(navGalFile, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -657,6 +690,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gal_signal("1B 7X");
|
||||
rinex_obs_header(obsFile, galileo_ephemeris_iter->second, rx_time, gal_signal);
|
||||
rinex_nav_header(navGalFile, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navGalfilename);
|
||||
log_rinex_nav(navGalFile, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -667,6 +701,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gal_signal("1B");
|
||||
rinex_obs_header(obsFile, gps_ephemeris_iter->second, galileo_ephemeris_iter->second, rx_time, gal_signal);
|
||||
rinex_nav_header(navMixFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navMixfilename);
|
||||
log_rinex_nav(navMixFile, pvt_solver->gps_ephemeris_map, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -676,6 +711,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
{
|
||||
rinex_obs_header(obsFile, beidou_dnav_ephemeris_iter->second, rx_time, "B1");
|
||||
rinex_nav_header(navFile, pvt_solver->beidou_dnav_iono, pvt_solver->beidou_dnav_utc_model);
|
||||
output_navfilename.push_back(navfilename);
|
||||
log_rinex_nav(navFile, pvt_solver->beidou_dnav_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -720,6 +756,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
{
|
||||
rinex_obs_header(obsFile, beidou_dnav_ephemeris_iter->second, rx_time, "B3");
|
||||
rinex_nav_header(navFile, pvt_solver->beidou_dnav_iono, pvt_solver->beidou_dnav_utc_model);
|
||||
output_navfilename.push_back(navfilename);
|
||||
log_rinex_nav(navFile, pvt_solver->beidou_dnav_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -743,6 +780,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gps_signal("1C 2S L5");
|
||||
rinex_obs_header(obsFile, gps_ephemeris_iter->second, gps_cnav_ephemeris_iter->second, rx_time, gps_signal);
|
||||
rinex_nav_header(navFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second);
|
||||
output_navfilename.push_back(navfilename);
|
||||
log_rinex_nav(navFile, pvt_solver->gps_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
@ -756,6 +794,7 @@ void Rinex_Printer::print_rinex_annotation(const Rtklib_Solver* pvt_solver, cons
|
||||
const std::string gps_signal("1C 2S L5");
|
||||
rinex_obs_header(obsFile, gps_ephemeris_iter->second, gps_cnav_ephemeris_iter->second, galileo_ephemeris_iter->second, rx_time, gps_signal, gal_signal);
|
||||
rinex_nav_header(navMixFile, pvt_solver->gps_iono, pvt_solver->gps_utc_model, gps_ephemeris_iter->second, pvt_solver->galileo_iono, pvt_solver->galileo_utc_model);
|
||||
output_navfilename.push_back(navMixfilename);
|
||||
log_rinex_nav(navMixFile, pvt_solver->gps_ephemeris_map, pvt_solver->galileo_ephemeris_map);
|
||||
d_rinex_header_written = true; // do not write header anymore
|
||||
}
|
||||
|
@ -48,6 +48,7 @@
|
||||
#include <map> // for map
|
||||
#include <sstream> // for stringstream
|
||||
#include <string> // for string
|
||||
#include <vector>
|
||||
|
||||
|
||||
/** \addtogroup PVT
|
||||
@ -100,7 +101,70 @@ public:
|
||||
* prints the RINEX headers for navigation and observation files. If it is
|
||||
* not the first annotation, it only annotates the observation, and updates
|
||||
* the navigation header if UTC data was not available when writting it for
|
||||
* the first time.
|
||||
* the first time. The meaning of type_of_rx is as follows:
|
||||
*
|
||||
* type_of_rx | Signals
|
||||
* ------------- | -------------
|
||||
* 0 | Unknown
|
||||
* 1 | GPS L1 C/A
|
||||
* 2 | GPS L2C
|
||||
* 3 | GPS L5
|
||||
* 4 | Galileo E1B
|
||||
* 5 | Galileo E5a
|
||||
* 6 | Galileo E5b
|
||||
* 7 | GPS L1 C/A + GPS L2C
|
||||
* 8 | GPS L1 C/A + GPS L5
|
||||
* 9 | GPS L1 C/A + Galileo E1B
|
||||
* 10 | GPS L1 C/A + Galileo E5a
|
||||
* 11 | GPS L1 C/A + Galileo E5b
|
||||
* 12 | Galileo E1B + GPS L2C
|
||||
* 13 | Galileo E5a + GPS L5
|
||||
* 14 | Galileo E1B + Galileo E5a
|
||||
* 15 | Galileo E1B + Galileo E5b
|
||||
* 16 | GPS L2C + GPS L5
|
||||
* 17 | GPS L2C + Galileo E5a
|
||||
* 20 | GPS L5 + Galileo E5b
|
||||
* 21 | GPS L1 C/A + Galileo E1B + GPS L2C
|
||||
* 22 | GPS L1 C/A + Galileo E1B + GPS L5
|
||||
* 23 | GLONASS L1 C/A
|
||||
* 24 | GLONASS L2 C/A
|
||||
* 25 | GLONASS L1 C/A + GLONASS L2 C/A
|
||||
* 26 | GPS L1 C/A + GLONASS L1 C/A
|
||||
* 27 | Galileo E1B + GLONASS L1 C/A
|
||||
* 28 | GPS L2C + GLONASS L1 C/A
|
||||
* 29 | GPS L1 C/A + GLONASS L2 C/A
|
||||
* 30 | Galileo E1B + GLONASS L2 C/A
|
||||
* 31 | GPS L2C + GLONASS L2 C/A
|
||||
* 32 | GPS L1 C/A + Galileo E1B + GPS L5 + Galileo E5a
|
||||
* 33 | GPS L1 C/A + Galileo E1B + Galileo E5a
|
||||
* 100 | Galileo E6B
|
||||
* 101 | Galileo E1B + Galileo E6B
|
||||
* 102 | Galileo E5a + Galileo E6B
|
||||
* 103 | Galileo E5b + Galileo E6B
|
||||
* 104 | Galileo E1B + Galileo E5a + Galileo E6B
|
||||
* 105 | Galileo E1B + Galileo E5b + Galileo E6B
|
||||
* 106 | GPS L1 C/A + Galileo E1B + Galileo E6B
|
||||
* 500 | BeiDou B1I
|
||||
* 501 | BeiDou B1I + GPS L1 C/A
|
||||
* 502 | BeiDou B1I + Galileo E1B
|
||||
* 503 | BeiDou B1I + GLONASS L1 C/A
|
||||
* 504 | BeiDou B1I + GPS L1 C/A + Galileo E1B
|
||||
* 505 | BeiDou B1I + GPS L1 C/A + GLONASS L1 C/A + Galileo E1B
|
||||
* 506 | BeiDou B1I + Beidou B3I
|
||||
* 600 | BeiDou B3I
|
||||
* 601 | BeiDou B3I + GPS L2C
|
||||
* 602 | BeiDou B3I + GLONASS L2 C/A
|
||||
* 603 | BeiDou B3I + GPS L2C + GLONASS L2 C/A
|
||||
* 604 | BeiDou B3I + GPS L1 C/A
|
||||
* 605 | BeiDou B3I + Galileo E1B
|
||||
* 606 | BeiDou B3I + GLONASS L1 C/A
|
||||
* 607 | BeiDou B3I + GPS L1 C/A + Galileo E1B
|
||||
* 608 | BeiDou B3I + GPS L1 C/A + Galileo E1B + BeiDou B1I
|
||||
* 609 | BeiDou B3I + GPS L1 C/A + Galileo E1B + GLONASS L1 C/A
|
||||
* 610 | BeiDou B3I + GPS L1 C/A + Galileo E1B + GLONASS L1 C/A + BeiDou B1I
|
||||
* 1000 | GPS L1 C/A + GPS L2C + GPS L5
|
||||
* 1001 | GPS L1 C/A + Galileo E1B + GPS L2C + GPS L5 + Galileo E5a
|
||||
*
|
||||
*/
|
||||
void print_rinex_annotation(const Rtklib_Solver* pvt_solver,
|
||||
const std::map<int, Gnss_Synchro>& gnss_observables_map,
|
||||
@ -151,24 +215,41 @@ public:
|
||||
return d_rinex_header_written;
|
||||
}
|
||||
|
||||
protected:
|
||||
/*!
|
||||
* \brief Generates the GPS Observation data header
|
||||
* \brief Returns name of RINEX navigation file(s)
|
||||
*/
|
||||
inline std::vector<std::string> get_navfilename() const
|
||||
{
|
||||
return output_navfilename;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Returns name of RINEX observation file
|
||||
*/
|
||||
inline std::string get_obsfilename() const
|
||||
{
|
||||
return obsfilename;
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
/*
|
||||
* Generates the GPS Observation data header
|
||||
*/
|
||||
void rinex_obs_header(std::fstream& out,
|
||||
const Gps_Ephemeris& eph,
|
||||
double d_TOW_first_observation);
|
||||
|
||||
/*!
|
||||
* \brief Generates the GPS L2 Observation data header
|
||||
/*
|
||||
* Generates the GPS L2 Observation data header
|
||||
*/
|
||||
void rinex_obs_header(std::fstream& out,
|
||||
const Gps_CNAV_Ephemeris& eph,
|
||||
double d_TOW_first_observation,
|
||||
const std::string& gps_bands = "2S");
|
||||
|
||||
/*!
|
||||
* \brief Generates the dual frequency GPS L1 & L2/L5 Observation data header
|
||||
/*
|
||||
* Generates the dual frequency GPS L1 & L2/L5 Observation data header
|
||||
*/
|
||||
void rinex_obs_header(std::fstream& out,
|
||||
const Gps_Ephemeris& eph,
|
||||
@ -176,8 +257,8 @@ protected:
|
||||
double d_TOW_first_observation,
|
||||
const std::string& gps_bands = "1C 2S");
|
||||
|
||||
/*!
|
||||
* \brief Generates the Galileo Observation data header.
|
||||
/*
|
||||
* Generates the Galileo Observation data header.
|
||||
* Example: bands("1B"), bands("1B 5X"), bands("5X"), ... Default: "1B".
|
||||
*/
|
||||
void rinex_obs_header(std::fstream& out,
|
||||
@ -185,8 +266,8 @@ protected:
|
||||
double d_TOW_first_observation,
|
||||
const std::string& bands = "1B");
|
||||
|
||||
/*!
|
||||
* \brief Generates the Mixed (GPS/Galileo) Observation data header.
|
||||
/*
|
||||
* Generates the Mixed (GPS/Galileo) Observation data header.
|
||||
* Example: galileo_bands("1B"), galileo_bands("1B 5X"),
|
||||
* galileo_bands("5X"), ... Default: "1B".
|
||||
*/
|
||||
@ -196,8 +277,8 @@ protected:
|
||||
double d_TOW_first_observation,
|
||||
const std::string& galileo_bands = "1B");
|
||||
|
||||
/*!
|
||||
* \brief Generates the Mixed (GPS/Galileo) Observation data header.
|
||||
/*
|
||||
* Generates the Mixed (GPS/Galileo) Observation data header.
|
||||
* Example: galileo_bands("1B"), galileo_bands("1B 5X"), galileo_bands("5X"), ... Default: "1B".
|
||||
*/
|
||||
void rinex_obs_header(std::fstream& out,
|
||||
@ -208,8 +289,8 @@ protected:
|
||||
const std::string& gps_bands = "1C 2S",
|
||||
const std::string& galileo_bands = "1B");
|
||||
|
||||
/*!
|
||||
* \brief Generates the Mixed (GPS/Galileo) Observation data header.
|
||||
/*
|
||||
* Generates the Mixed (GPS/Galileo) Observation data header.
|
||||
* Example: galileo_bands("1B"), galileo_bands("1B 5X"), galileo_bands("5X"), ... Default: "1B".
|
||||
*/
|
||||
void rinex_obs_header(std::fstream& out,
|
||||
@ -219,8 +300,8 @@ protected:
|
||||
const std::string& gps_bands = "2S",
|
||||
const std::string& galileo_bands = "1B");
|
||||
|
||||
/*!
|
||||
* \brief Generates the GLONASS GNAV Observation data header.
|
||||
/*
|
||||
* Generates the GLONASS GNAV Observation data header.
|
||||
* Example: bands("1C"), bands("1C 2C"), bands("2C"), ... Default: "1C".
|
||||
*/
|
||||
void rinex_obs_header(std::fstream& out,
|
||||
@ -228,8 +309,8 @@ protected:
|
||||
double d_TOW_first_observation,
|
||||
const std::string& bands = "1G");
|
||||
|
||||
/*!
|
||||
* \brief Generates the Mixed (GPS L1 C/A /GLONASS) Observation data header.
|
||||
/*
|
||||
* Generates the Mixed (GPS L1 C/A /GLONASS) Observation data header.
|
||||
* Example: galileo_bands("1C"), galileo_bands("1B 5X"), galileo_bands("5X"), ... Default: "1B".
|
||||
*/
|
||||
void rinex_obs_header(std::fstream& out,
|
||||
@ -238,8 +319,8 @@ protected:
|
||||
double d_TOW_first_observation,
|
||||
const std::string& glonass_bands = "1C");
|
||||
|
||||
/*!
|
||||
* \brief Generates the Mixed (Galileo/GLONASS) Observation data header.
|
||||
/*
|
||||
* Generates the Mixed (Galileo/GLONASS) Observation data header.
|
||||
* Example: galileo_bands("1C"), galileo_bands("1B 5X"), galileo_bands("5X"), ... Default: "1B".
|
||||
*/
|
||||
void rinex_obs_header(std::fstream& out,
|
||||
@ -249,8 +330,8 @@ protected:
|
||||
const std::string& galileo_bands = "1B",
|
||||
const std::string& glonass_bands = "1C");
|
||||
|
||||
/*!
|
||||
* \brief Generates the Mixed (GPS L2C/GLONASS) Observation data header.
|
||||
/*
|
||||
* Generates the Mixed (GPS L2C/GLONASS) Observation data header.
|
||||
* Example: galileo_bands("1G")... Default: "1G".
|
||||
*/
|
||||
void rinex_obs_header(std::fstream& out,
|
||||
@ -259,37 +340,37 @@ protected:
|
||||
double d_TOW_first_observation,
|
||||
const std::string& glonass_bands = "1G");
|
||||
|
||||
/*!
|
||||
* \brief Generates the a Beidou B1I Observation data header. Example: beidou_bands("B1")
|
||||
/*
|
||||
* Generates the a Beidou B1I Observation data header. Example: beidou_bands("B1")
|
||||
*/
|
||||
void rinex_obs_header(std::fstream& out,
|
||||
const Beidou_Dnav_Ephemeris& eph,
|
||||
double d_TOW_first_observation,
|
||||
const std::string& bands);
|
||||
|
||||
/*!
|
||||
* \brief Generates the SBAS raw data header
|
||||
/*
|
||||
* Generates the SBAS raw data header
|
||||
*/
|
||||
void rinex_sbs_header(std::fstream& out) const;
|
||||
|
||||
/*!
|
||||
* \brief Writes GPS L1 observables into the RINEX file
|
||||
/*
|
||||
* Writes GPS L1 observables into the RINEX file
|
||||
*/
|
||||
void log_rinex_obs(std::fstream& out,
|
||||
const Gps_Ephemeris& eph,
|
||||
double obs_time,
|
||||
const std::map<int32_t, Gnss_Synchro>& observables) const;
|
||||
|
||||
/*!
|
||||
* \brief Writes GPS L2 observables into the RINEX file
|
||||
/*
|
||||
* Writes GPS L2 observables into the RINEX file
|
||||
*/
|
||||
void log_rinex_obs(std::fstream& out,
|
||||
const Gps_CNAV_Ephemeris& eph,
|
||||
double obs_time,
|
||||
const std::map<int32_t, Gnss_Synchro>& observables) const;
|
||||
|
||||
/*!
|
||||
* \brief Writes dual frequency GPS L1 and L2 observables into the RINEX file
|
||||
/*
|
||||
* Writes dual frequency GPS L1 and L2 observables into the RINEX file
|
||||
*/
|
||||
void log_rinex_obs(std::fstream& out,
|
||||
const Gps_Ephemeris& eph,
|
||||
@ -298,8 +379,8 @@ protected:
|
||||
const std::map<int32_t, Gnss_Synchro>& observables,
|
||||
bool triple_band = false) const;
|
||||
|
||||
/*!
|
||||
* \brief Writes Galileo observables into the RINEX file.
|
||||
/*
|
||||
* Writes Galileo observables into the RINEX file.
|
||||
* Example: galileo_bands("1B"), galileo_bands("1B 5X"), galileo_bands("5X"), ... Default: "1B".
|
||||
*/
|
||||
void log_rinex_obs(std::fstream& out,
|
||||
@ -308,8 +389,8 @@ protected:
|
||||
const std::map<int32_t, Gnss_Synchro>& observables,
|
||||
const std::string& galileo_bands = "1B") const;
|
||||
|
||||
/*!
|
||||
* \brief Writes Mixed GPS / Galileo observables into the RINEX file
|
||||
/*
|
||||
* Writes Mixed GPS / Galileo observables into the RINEX file
|
||||
*/
|
||||
void log_rinex_obs(std::fstream& out,
|
||||
const Gps_Ephemeris& gps_eph,
|
||||
@ -317,8 +398,8 @@ protected:
|
||||
double gps_obs_time,
|
||||
const std::map<int32_t, Gnss_Synchro>& observables) const;
|
||||
|
||||
/*!
|
||||
* \brief Writes Mixed GPS / Galileo observables into the RINEX file
|
||||
/*
|
||||
* Writes Mixed GPS / Galileo observables into the RINEX file
|
||||
*/
|
||||
void log_rinex_obs(std::fstream& out,
|
||||
const Gps_CNAV_Ephemeris& eph,
|
||||
@ -326,8 +407,8 @@ protected:
|
||||
double gps_obs_time,
|
||||
const std::map<int32_t, Gnss_Synchro>& observables) const;
|
||||
|
||||
/*!
|
||||
* \brief Writes Mixed GPS / Galileo observables into the RINEX file
|
||||
/*
|
||||
* Writes Mixed GPS / Galileo observables into the RINEX file
|
||||
*/
|
||||
void log_rinex_obs(std::fstream& out,
|
||||
const Gps_Ephemeris& gps_eph,
|
||||
@ -337,8 +418,8 @@ protected:
|
||||
const std::map<int32_t, Gnss_Synchro>& observables,
|
||||
bool triple_band = false) const;
|
||||
|
||||
/*!
|
||||
* \brief Writes GLONASS GNAV observables into the RINEX file.
|
||||
/*
|
||||
* Writes GLONASS GNAV observables into the RINEX file.
|
||||
* Example: glonass_bands("1C"), galileo_bands("1B 5X"), galileo_bands("5X"), ... Default: "1B".
|
||||
*/
|
||||
void log_rinex_obs(std::fstream& out,
|
||||
@ -347,8 +428,8 @@ protected:
|
||||
const std::map<int32_t, Gnss_Synchro>& observables,
|
||||
const std::string& glonass_bands = "1C") const;
|
||||
|
||||
/*!
|
||||
* \brief Writes Mixed GPS L1 C/A - GLONASS observables into the RINEX file
|
||||
/*
|
||||
* Writes Mixed GPS L1 C/A - GLONASS observables into the RINEX file
|
||||
*/
|
||||
void log_rinex_obs(std::fstream& out,
|
||||
const Gps_Ephemeris& gps_eph,
|
||||
@ -356,8 +437,8 @@ protected:
|
||||
double gps_obs_time,
|
||||
const std::map<int32_t, Gnss_Synchro>& observables) const;
|
||||
|
||||
/*!
|
||||
* \brief Writes Mixed GPS L2C - GLONASS observables into the RINEX file
|
||||
/*
|
||||
* Writes Mixed GPS L2C - GLONASS observables into the RINEX file
|
||||
*/
|
||||
void log_rinex_obs(std::fstream& out,
|
||||
const Gps_CNAV_Ephemeris& gps_eph,
|
||||
@ -365,8 +446,8 @@ protected:
|
||||
double gps_obs_time,
|
||||
const std::map<int32_t, Gnss_Synchro>& observables) const;
|
||||
|
||||
/*!
|
||||
* \brief Writes Mixed Galileo/GLONASS observables into the RINEX file
|
||||
/*
|
||||
* Writes Mixed Galileo/GLONASS observables into the RINEX file
|
||||
*/
|
||||
void log_rinex_obs(std::fstream& out,
|
||||
const Galileo_Ephemeris& galileo_eph,
|
||||
@ -374,8 +455,8 @@ protected:
|
||||
double galileo_obs_time,
|
||||
const std::map<int32_t, Gnss_Synchro>& observables) const;
|
||||
|
||||
/*!
|
||||
* \brief Writes BDS B1I observables into the RINEX file
|
||||
/*
|
||||
* Writes BDS B1I observables into the RINEX file
|
||||
*/
|
||||
void log_rinex_obs(std::fstream& out,
|
||||
const Beidou_Dnav_Ephemeris& eph,
|
||||
@ -383,150 +464,189 @@ protected:
|
||||
const std::map<int32_t, Gnss_Synchro>& observables,
|
||||
const std::string& bds_bands) const;
|
||||
|
||||
/*!
|
||||
* \brief Sets RINEX version
|
||||
*/
|
||||
inline void set_version(int version)
|
||||
{
|
||||
d_version = version;
|
||||
}
|
||||
|
||||
std::fstream obsFile; //!< Output file stream for RINEX observation file
|
||||
std::fstream navFile; //!< Output file stream for RINEX navigation data file
|
||||
std::fstream sbsFile; //!< Output file stream for RINEX SBAS raw data file
|
||||
std::fstream navGalFile; //!< Output file stream for RINEX Galileo navigation data file
|
||||
std::fstream navGloFile; //!< Output file stream for RINEX GLONASS navigation data file
|
||||
std::fstream navBdsFile; //!< Output file stream for RINEX Galileo navigation data file
|
||||
std::fstream navMixFile; //!< Output file stream for RINEX Mixed navigation data file
|
||||
|
||||
std::string navfilename; //!< Name of RINEX navigation file for GPS L1
|
||||
std::string obsfilename; //!< Name of RINEX observation file
|
||||
std::string sbsfilename; //!< Name of RINEX SBAS file
|
||||
std::string navGalfilename; //!< Name of RINEX navigation file for Galileo
|
||||
std::string navGlofilename; //!< Name of RINEX navigation file for Glonass
|
||||
std::string navBdsfilename; //!< Name of RINEX navigation file for BeiDou
|
||||
std::string navMixfilename; //!< Name of RINEX navigation file for fixed signals
|
||||
|
||||
private:
|
||||
/*
|
||||
* Generates the GPS L1 C/A Navigation Data header
|
||||
*/
|
||||
void rinex_nav_header(std::fstream& out, const Gps_Iono& iono, const Gps_Utc_Model& utc_model, const Gps_Ephemeris& eph) const;
|
||||
void rinex_nav_header(std::fstream& out,
|
||||
const Gps_Iono& iono,
|
||||
const Gps_Utc_Model& utc_model,
|
||||
const Gps_Ephemeris& eph) const;
|
||||
|
||||
/*
|
||||
* Generates the GPS L2C(M) Navigation Data header
|
||||
*/
|
||||
void rinex_nav_header(std::fstream& out, const Gps_CNAV_Iono& iono, const Gps_CNAV_Utc_Model& utc_model) const;
|
||||
void rinex_nav_header(std::fstream& out,
|
||||
const Gps_CNAV_Iono& iono,
|
||||
const Gps_CNAV_Utc_Model& utc_model) const;
|
||||
|
||||
/*
|
||||
* Generates the Galileo Navigation Data header
|
||||
*/
|
||||
void rinex_nav_header(std::fstream& out, const Galileo_Iono& iono, const Galileo_Utc_Model& utc_model) const;
|
||||
void rinex_nav_header(std::fstream& out,
|
||||
const Galileo_Iono& iono,
|
||||
const Galileo_Utc_Model& utc_model) const;
|
||||
|
||||
/*
|
||||
* Generates the Mixed (GPS/Galileo) Navigation Data header
|
||||
*/
|
||||
void rinex_nav_header(std::fstream& out, const Gps_Iono& gps_iono, const Gps_Utc_Model& gps_utc_model, const Gps_Ephemeris& eph, const Galileo_Iono& galileo_iono, const Galileo_Utc_Model& galileo_utc_model) const;
|
||||
void rinex_nav_header(std::fstream& out,
|
||||
const Gps_Iono& gps_iono,
|
||||
const Gps_Utc_Model& gps_utc_model,
|
||||
const Gps_Ephemeris& eph,
|
||||
const Galileo_Iono& galileo_iono,
|
||||
const Galileo_Utc_Model& galileo_utc_model) const;
|
||||
|
||||
/*
|
||||
* Generates the Mixed (GPS CNAV/Galileo) Navigation Data header
|
||||
*/
|
||||
void rinex_nav_header(std::fstream& out, const Gps_CNAV_Iono& iono, const Gps_CNAV_Utc_Model& utc_model, const Galileo_Iono& galileo_iono, const Galileo_Utc_Model& galileo_utc_model) const;
|
||||
void rinex_nav_header(std::fstream& out,
|
||||
const Gps_CNAV_Iono& iono,
|
||||
const Gps_CNAV_Utc_Model& utc_model,
|
||||
const Galileo_Iono& galileo_iono,
|
||||
const Galileo_Utc_Model& galileo_utc_model) const;
|
||||
|
||||
/*
|
||||
* Generates the GLONASS L1, L2 C/A Navigation Data header
|
||||
*/
|
||||
void rinex_nav_header(std::fstream& out, const Glonass_Gnav_Utc_Model& utc_model, const Glonass_Gnav_Ephemeris& glonass_gnav_eph);
|
||||
void rinex_nav_header(std::fstream& out,
|
||||
const Glonass_Gnav_Utc_Model& utc_model,
|
||||
const Glonass_Gnav_Ephemeris& glonass_gnav_eph);
|
||||
|
||||
/*
|
||||
* Generates the Mixed (Galileo/GLONASS) Navigation Data header
|
||||
*/
|
||||
void rinex_nav_header(std::fstream& out, const Galileo_Iono& galileo_iono, const Galileo_Utc_Model& galileo_utc_model, const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model, const Glonass_Gnav_Almanac& glonass_gnav_almanac) const;
|
||||
void rinex_nav_header(std::fstream& out,
|
||||
const Galileo_Iono& galileo_iono,
|
||||
const Galileo_Utc_Model& galileo_utc_model,
|
||||
const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model,
|
||||
const Glonass_Gnav_Almanac& glonass_gnav_almanac) const;
|
||||
|
||||
/*
|
||||
* Generates the Mixed (GPS L1 C/A/GLONASS L1, L2) Navigation Data header
|
||||
*/
|
||||
void rinex_nav_header(std::fstream& out, const Gps_Iono& gps_iono, const Gps_Utc_Model& gps_utc_model, const Gps_Ephemeris& eph, const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model, const Glonass_Gnav_Almanac& glonass_gnav_almanac);
|
||||
void rinex_nav_header(std::fstream& out,
|
||||
const Gps_Iono& gps_iono,
|
||||
const Gps_Utc_Model& gps_utc_model,
|
||||
const Gps_Ephemeris& eph,
|
||||
const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model,
|
||||
const Glonass_Gnav_Almanac& glonass_gnav_almanac);
|
||||
|
||||
/*
|
||||
* Generates the Mixed (GPS L2C C/A/GLONASS L1, L2) Navigation Data header
|
||||
*/
|
||||
void rinex_nav_header(std::fstream& out, const Gps_CNAV_Iono& gps_iono, const Gps_CNAV_Utc_Model& gps_utc_model, const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model, const Glonass_Gnav_Almanac& glonass_gnav_almanac);
|
||||
void rinex_nav_header(std::fstream& out,
|
||||
const Gps_CNAV_Iono& gps_iono,
|
||||
const Gps_CNAV_Utc_Model& gps_utc_model,
|
||||
const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model,
|
||||
const Glonass_Gnav_Almanac& glonass_gnav_almanac);
|
||||
|
||||
/*
|
||||
* Generates the BDS B1I or B3I Navigation Data header
|
||||
*/
|
||||
void rinex_nav_header(std::fstream& out, const Beidou_Dnav_Iono& iono, const Beidou_Dnav_Utc_Model& utc_model) const;
|
||||
void rinex_nav_header(std::fstream& out,
|
||||
const Beidou_Dnav_Iono& iono,
|
||||
const Beidou_Dnav_Utc_Model& utc_model) const;
|
||||
|
||||
/*
|
||||
* Generates the Mixed GPS L1,L5 + BDS B1I, B3I Navigation Data header
|
||||
*/
|
||||
void rinex_nav_header(std::fstream& out, const Gps_Iono& gps_iono, const Gps_Utc_Model& gps_utc_model, const Gps_Ephemeris& eph, const Beidou_Dnav_Iono& bds_dnav_iono, const Beidou_Dnav_Utc_Model& bds_dnav_utc_model) const;
|
||||
void rinex_nav_header(std::fstream& out,
|
||||
const Gps_Iono& gps_iono,
|
||||
const Gps_Utc_Model& gps_utc_model,
|
||||
const Gps_Ephemeris& eph,
|
||||
const Beidou_Dnav_Iono& bds_dnav_iono,
|
||||
const Beidou_Dnav_Utc_Model& bds_dnav_utc_model) const;
|
||||
|
||||
/*
|
||||
* Generates the Mixed GPS L2C + BDS B1I, B3I Navigation Data header
|
||||
*/
|
||||
void rinex_nav_header(std::fstream& out, const Gps_CNAV_Iono& gps_cnav_iono, const Gps_CNAV_Utc_Model& gps_cnav_utc_model, const Beidou_Dnav_Iono& bds_dnav_iono, const Beidou_Dnav_Utc_Model& bds_dnav_utc_model);
|
||||
void rinex_nav_header(std::fstream& out,
|
||||
const Gps_CNAV_Iono& gps_cnav_iono,
|
||||
const Gps_CNAV_Utc_Model& gps_cnav_utc_model,
|
||||
const Beidou_Dnav_Iono& bds_dnav_iono,
|
||||
const Beidou_Dnav_Utc_Model& bds_dnav_utc_model);
|
||||
|
||||
/*
|
||||
* Generates the Mixed GLONASS L1,L2 + BDS B1I, B3I Navigation Data header
|
||||
*/
|
||||
void rinex_nav_header(std::fstream& out, const Glonass_Gnav_Utc_Model& glo_gnav_utc_model, const Beidou_Dnav_Iono& bds_dnav_iono, const Beidou_Dnav_Utc_Model& bds_dnav_utc_model) const;
|
||||
void rinex_nav_header(std::fstream& out,
|
||||
const Glonass_Gnav_Utc_Model& glo_gnav_utc_model,
|
||||
const Beidou_Dnav_Iono& bds_dnav_iono,
|
||||
const Beidou_Dnav_Utc_Model& bds_dnav_utc_model) const;
|
||||
|
||||
/*
|
||||
* Generates the Mixed (Galileo/BDS B1I, B3I) Navigation Data header
|
||||
*/
|
||||
void rinex_nav_header(std::fstream& out, const Galileo_Iono& galileo_iono, const Galileo_Utc_Model& galileo_utc_model, const Beidou_Dnav_Iono& bds_dnav_iono, const Beidou_Dnav_Utc_Model& bds_dnav_utc_model) const;
|
||||
void rinex_nav_header(std::fstream& out,
|
||||
const Galileo_Iono& galileo_iono,
|
||||
const Galileo_Utc_Model& galileo_utc_model,
|
||||
const Beidou_Dnav_Iono& bds_dnav_iono,
|
||||
const Beidou_Dnav_Utc_Model& bds_dnav_utc_model) const;
|
||||
|
||||
/*
|
||||
* Writes data from the GPS L1 C/A navigation message into the RINEX file
|
||||
*/
|
||||
void log_rinex_nav(std::fstream& out, const std::map<int32_t, Gps_Ephemeris>& eph_map) const;
|
||||
void log_rinex_nav(std::fstream& out,
|
||||
const std::map<int32_t, Gps_Ephemeris>& eph_map) const;
|
||||
|
||||
/*
|
||||
* Writes data from the GPS L2 navigation message into the RINEX file
|
||||
*/
|
||||
void log_rinex_nav(std::fstream& out, const std::map<int32_t, Gps_CNAV_Ephemeris>& eph_map);
|
||||
void log_rinex_nav(std::fstream& out,
|
||||
const std::map<int32_t, Gps_CNAV_Ephemeris>& eph_map);
|
||||
|
||||
/*
|
||||
* Writes data from the Galileo navigation message into the RINEX file
|
||||
*/
|
||||
void log_rinex_nav(std::fstream& out, const std::map<int32_t, Galileo_Ephemeris>& eph_map) const;
|
||||
void log_rinex_nav(std::fstream& out,
|
||||
const std::map<int32_t, Galileo_Ephemeris>& eph_map) const;
|
||||
|
||||
/*
|
||||
* Writes data from the Mixed (GPS/Galileo) navigation message into the RINEX file
|
||||
*/
|
||||
void log_rinex_nav(std::fstream& out, const std::map<int32_t, Gps_Ephemeris>& gps_eph_map, const std::map<int32_t, Galileo_Ephemeris>& galileo_eph_map);
|
||||
void log_rinex_nav(std::fstream& out,
|
||||
const std::map<int32_t, Gps_Ephemeris>& gps_eph_map,
|
||||
const std::map<int32_t, Galileo_Ephemeris>& galileo_eph_map);
|
||||
|
||||
/*
|
||||
* Writes data from the Mixed (GPS/Galileo) navigation message into the RINEX file
|
||||
*/
|
||||
void log_rinex_nav(std::fstream& out, const std::map<int32_t, Gps_CNAV_Ephemeris>& gps_cnav_eph_map, const std::map<int32_t, Galileo_Ephemeris>& galileo_eph_map);
|
||||
void log_rinex_nav(std::fstream& out,
|
||||
const std::map<int32_t, Gps_CNAV_Ephemeris>& gps_cnav_eph_map,
|
||||
const std::map<int32_t, Galileo_Ephemeris>& galileo_eph_map);
|
||||
|
||||
/*
|
||||
* Writes data from the GLONASS GNAV navigation message into the RINEX file
|
||||
*/
|
||||
void log_rinex_nav(std::fstream& out, const std::map<int32_t, Glonass_Gnav_Ephemeris>& eph_map) const;
|
||||
void log_rinex_nav(std::fstream& out,
|
||||
const std::map<int32_t, Glonass_Gnav_Ephemeris>& eph_map) const;
|
||||
|
||||
/*
|
||||
* Writes data from the Mixed (GPS/GLONASS GNAV) navigation message into the RINEX file
|
||||
*/
|
||||
void log_rinex_nav(std::fstream& out, const std::map<int32_t, Gps_Ephemeris>& gps_eph_map, const std::map<int32_t, Glonass_Gnav_Ephemeris>& glonass_gnav_eph_map) const;
|
||||
void log_rinex_nav(std::fstream& out,
|
||||
const std::map<int32_t, Gps_Ephemeris>& gps_eph_map,
|
||||
const std::map<int32_t, Glonass_Gnav_Ephemeris>& glonass_gnav_eph_map) const;
|
||||
|
||||
/*
|
||||
* Writes data from the Mixed (GPS/GLONASS GNAV) navigation message into the RINEX file
|
||||
*/
|
||||
void log_rinex_nav(std::fstream& out, const std::map<int32_t, Gps_CNAV_Ephemeris>& gps_cnav_eph_map, const std::map<int32_t, Glonass_Gnav_Ephemeris>& glonass_gnav_eph_map);
|
||||
void log_rinex_nav(std::fstream& out,
|
||||
const std::map<int32_t, Gps_CNAV_Ephemeris>& gps_cnav_eph_map,
|
||||
const std::map<int32_t, Glonass_Gnav_Ephemeris>& glonass_gnav_eph_map);
|
||||
|
||||
/*
|
||||
* Writes data from the Mixed (Galileo/ GLONASS GNAV) navigation message into the RINEX file
|
||||
*/
|
||||
void log_rinex_nav(std::fstream& out, const std::map<int32_t, Galileo_Ephemeris>& galileo_eph_map, const std::map<int32_t, Glonass_Gnav_Ephemeris>& glonass_gnav_eph_map);
|
||||
void log_rinex_nav(std::fstream& out,
|
||||
const std::map<int32_t, Galileo_Ephemeris>& galileo_eph_map,
|
||||
const std::map<int32_t, Glonass_Gnav_Ephemeris>& glonass_gnav_eph_map);
|
||||
|
||||
/*
|
||||
* Writes data from the Beidou B1I navigation message into the RINEX file
|
||||
*/
|
||||
void log_rinex_nav(std::fstream& out, const std::map<int32_t, Beidou_Dnav_Ephemeris>& eph_map) const;
|
||||
void log_rinex_nav(std::fstream& out,
|
||||
const std::map<int32_t, Beidou_Dnav_Ephemeris>& eph_map) const;
|
||||
|
||||
/*
|
||||
* Computes the BDS Time and returns a boost::posix_time::ptime object
|
||||
@ -573,46 +693,89 @@ private:
|
||||
*/
|
||||
double get_leap_second(const Glonass_Gnav_Ephemeris& eph, double gps_obs_time) const;
|
||||
|
||||
|
||||
/*
|
||||
* \brief Represents GPS time in the date time format. Leap years are considered, but leap seconds are not.
|
||||
* Represents GPS time in the date time format. Leap years are considered, but leap seconds are not.
|
||||
*/
|
||||
void to_date_time(int gps_week, int gps_tow, int& year, int& month, int& day, int& hour, int& minute, int& second) const;
|
||||
void to_date_time(int gps_week,
|
||||
int gps_tow,
|
||||
int& year,
|
||||
int& month,
|
||||
int& day,
|
||||
int& hour,
|
||||
int& minute,
|
||||
int& second) const;
|
||||
|
||||
/*
|
||||
* Writes raw SBAS messages into the RINEX file
|
||||
*/
|
||||
// void log_rinex_sbs(std::fstream & out, const Sbas_Raw_Msg & sbs_message);
|
||||
|
||||
void update_nav_header(std::fstream& out, const Gps_Utc_Model& utc_model, const Gps_Iono& gps_iono, const Gps_Ephemeris& eph) const;
|
||||
void update_nav_header(std::fstream& out,
|
||||
const Gps_Utc_Model& utc_model,
|
||||
const Gps_Iono& gps_iono, const Gps_Ephemeris& eph) const;
|
||||
|
||||
void update_nav_header(std::fstream& out, const Gps_CNAV_Utc_Model& utc_model, const Gps_CNAV_Iono& iono) const;
|
||||
void update_nav_header(std::fstream& out,
|
||||
const Gps_CNAV_Utc_Model& utc_model,
|
||||
const Gps_CNAV_Iono& iono) const;
|
||||
|
||||
void update_nav_header(std::fstream& out, const Gps_Iono& gps_iono, const Gps_Utc_Model& gps_utc_model, const Gps_Ephemeris& eph, const Galileo_Iono& galileo_iono, const Galileo_Utc_Model& galileo_utc_model) const;
|
||||
void update_nav_header(std::fstream& out,
|
||||
const Gps_Iono& gps_iono,
|
||||
const Gps_Utc_Model& gps_utc_model,
|
||||
const Gps_Ephemeris& eph,
|
||||
const Galileo_Iono& galileo_iono,
|
||||
const Galileo_Utc_Model& galileo_utc_model) const;
|
||||
|
||||
void update_nav_header(std::fstream& out, const Gps_CNAV_Utc_Model& utc_model, const Gps_CNAV_Iono& iono, const Galileo_Iono& galileo_iono, const Galileo_Utc_Model& galileo_utc_model) const;
|
||||
void update_nav_header(std::fstream& out,
|
||||
const Gps_CNAV_Utc_Model& utc_model,
|
||||
const Gps_CNAV_Iono& iono,
|
||||
const Galileo_Iono& galileo_iono,
|
||||
const Galileo_Utc_Model& galileo_utc_model) const;
|
||||
|
||||
void update_nav_header(std::fstream& out, const Galileo_Iono& galileo_iono, const Galileo_Utc_Model& utc_model) const;
|
||||
void update_nav_header(std::fstream& out,
|
||||
const Galileo_Iono& galileo_iono,
|
||||
const Galileo_Utc_Model& utc_model) const;
|
||||
|
||||
void update_nav_header(std::fstream& out, const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model, const Glonass_Gnav_Almanac& glonass_gnav_almanac) const;
|
||||
void update_nav_header(std::fstream& out,
|
||||
const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model,
|
||||
const Glonass_Gnav_Almanac& glonass_gnav_almanac) const;
|
||||
|
||||
void update_nav_header(std::fstream& out, const Gps_Iono& gps_iono, const Gps_Utc_Model& gps_utc, const Gps_Ephemeris& eph, const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model, const Glonass_Gnav_Almanac& glonass_gnav_almanac) const;
|
||||
void update_nav_header(std::fstream& out,
|
||||
const Gps_Iono& gps_iono,
|
||||
const Gps_Utc_Model& gps_utc,
|
||||
const Gps_Ephemeris& eph,
|
||||
const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model,
|
||||
const Glonass_Gnav_Almanac& glonass_gnav_almanac) const;
|
||||
|
||||
void update_nav_header(std::fstream& out, const Gps_CNAV_Iono& gps_iono, const Gps_CNAV_Utc_Model& gps_utc_model, const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model, const Glonass_Gnav_Almanac& glonass_gnav_almanac) const;
|
||||
void update_nav_header(std::fstream& out,
|
||||
const Gps_CNAV_Iono& gps_iono,
|
||||
const Gps_CNAV_Utc_Model& gps_utc_model,
|
||||
const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model,
|
||||
const Glonass_Gnav_Almanac& glonass_gnav_almanac) const;
|
||||
|
||||
void update_nav_header(std::fstream& out, const Galileo_Iono& galileo_iono, const Galileo_Utc_Model& galileo_utc_model, const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model, const Glonass_Gnav_Almanac& glonass_gnav_almanac) const;
|
||||
void update_nav_header(std::fstream& out,
|
||||
const Galileo_Iono& galileo_iono,
|
||||
const Galileo_Utc_Model& galileo_utc_model,
|
||||
const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model,
|
||||
const Glonass_Gnav_Almanac& glonass_gnav_almanac) const;
|
||||
|
||||
void update_nav_header(std::fstream& out, const Beidou_Dnav_Utc_Model& utc_model, const Beidou_Dnav_Iono& beidou_dnav_iono) const;
|
||||
void update_nav_header(std::fstream& out,
|
||||
const Beidou_Dnav_Utc_Model& utc_model,
|
||||
const Beidou_Dnav_Iono& beidou_dnav_iono) const;
|
||||
|
||||
void update_obs_header(std::fstream& out, const Gps_Utc_Model& utc_model) const;
|
||||
void update_obs_header(std::fstream& out,
|
||||
const Gps_Utc_Model& utc_model) const;
|
||||
|
||||
void update_obs_header(std::fstream& out, const Gps_CNAV_Utc_Model& utc_model) const;
|
||||
void update_obs_header(std::fstream& out,
|
||||
const Gps_CNAV_Utc_Model& utc_model) const;
|
||||
|
||||
void update_obs_header(std::fstream& out, const Galileo_Utc_Model& galileo_utc_model) const;
|
||||
void update_obs_header(std::fstream& out,
|
||||
const Galileo_Utc_Model& galileo_utc_model) const;
|
||||
|
||||
void update_obs_header(std::fstream& out, const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model) const;
|
||||
void update_obs_header(std::fstream& out,
|
||||
const Glonass_Gnav_Utc_Model& glonass_gnav_utc_model) const;
|
||||
|
||||
void update_obs_header(std::fstream& out, const Beidou_Dnav_Utc_Model& utc_model) const;
|
||||
void update_obs_header(std::fstream& out,
|
||||
const Beidou_Dnav_Utc_Model& utc_model) const;
|
||||
|
||||
/*
|
||||
* Generation of RINEX signal strength indicators
|
||||
@ -825,7 +988,25 @@ private:
|
||||
std::map<std::string, std::string> satelliteSystem; // GPS, GLONASS, SBAS payload, Galileo or Beidou
|
||||
std::map<std::string, std::string> observationType; // PSEUDORANGE, CARRIER_PHASE, DOPPLER, SIGNAL_STRENGTH
|
||||
std::map<std::string, std::string> observationCode; // GNSS observation descriptors
|
||||
std::string d_stringVersion; // RINEX version (2.10/2.11 or 3.01/3.02)
|
||||
|
||||
std::fstream obsFile; // Output file stream for RINEX observation file
|
||||
std::fstream navFile; // Output file stream for RINEX navigation data file
|
||||
std::fstream sbsFile; // Output file stream for RINEX SBAS raw data file
|
||||
std::fstream navGalFile; // Output file stream for RINEX Galileo navigation data file
|
||||
std::fstream navGloFile; // Output file stream for RINEX GLONASS navigation data file
|
||||
std::fstream navBdsFile; // Output file stream for RINEX Galileo navigation data file
|
||||
std::fstream navMixFile; // Output file stream for RINEX Mixed navigation data file
|
||||
|
||||
std::string navfilename; // Name of RINEX navigation file for GPS L1
|
||||
std::string obsfilename; // Name of RINEX observation file
|
||||
std::string sbsfilename; // Name of RINEX SBAS file
|
||||
std::string navGalfilename; // Name of RINEX navigation file for Galileo
|
||||
std::string navGlofilename; // Name of RINEX navigation file for Glonass
|
||||
std::string navBdsfilename; // Name of RINEX navigation file for BeiDou
|
||||
std::string navMixfilename; // Name of RINEX navigation file for fixed signals
|
||||
std::vector<std::string> output_navfilename; // Name of output RINEX navigation file(s)
|
||||
|
||||
std::string d_stringVersion; // RINEX version (2.10/2.11 or 3.01/3.02)
|
||||
|
||||
double d_fake_cnav_iode;
|
||||
int d_version; // RINEX version (2 for 2.10/2.11 and 3 for 3.01)
|
||||
|
@ -133,7 +133,6 @@ DECLARE_string(log_dir);
|
||||
#include "unit-tests/system-parameters/glonass_gnav_ephemeris_test.cc"
|
||||
#include "unit-tests/system-parameters/glonass_gnav_nav_message_test.cc"
|
||||
|
||||
|
||||
#if EXTRA_TESTS
|
||||
#include "unit-tests/signal-processing-blocks/acquisition/acq_performance_test.cc"
|
||||
// #include "unit-tests/signal-processing-blocks/acquisition/beidou_b1i_pcps_acquisition_test.cc"
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user