1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-21 17:44:52 +00:00

Re-organizing assistance data input and output

Now we are reading the assistance data from xml files if the correct
configuration option is set; defined the name for the xml files as
const inside control_thread.h; and finally moved the manipulation
of these files to the gnss_sdr_supl_client class, not anymore inside
the control_thread.

Signed-off-by: Javier Arribas <jarribas@cttc.es>
This commit is contained in:
Leonardo Tonetto
2014-04-28 16:27:47 +02:00
committed by Javier Arribas
parent eac73b5baa
commit 20121dcc73
6 changed files with 416 additions and 185 deletions

View File

@@ -123,9 +123,12 @@ private:
void init();
// Read ephemeris assistance from a local XML file previously recorded
// Read {ephemeris, iono, utc, ref loc, ref time} assistance from a local XML file previously recorded
bool read_assistance_from_XML();
// Save {ephemeris, iono, utc, ref loc, ref time} assistance to a local XML file
bool save_assistance_to_XML();
void read_control_messages();
void process_control_messages();
@@ -135,11 +138,6 @@ private:
*/
void gps_ephemeris_data_collector();
/*
* Writes the ephemeris map to a local XML file
*/
void gps_ephemeris_data_write_to_XML();
/*
* Blocking function that reads the UTC model queue and updates the shared map, accessible from the PVT block
*/
@@ -155,31 +153,11 @@ private:
*/
void gps_ref_time_data_collector();
/*
* Write the latest GPS UTC model to XML file
*/
void gps_utc_model_data_write_to_XML();
/*
* \brief Write the latest ref location to XML file (AGPS)
*/
void gps_ref_location_data_write_to_XML();
/*
* \brief Write the latest ref time to XML file (AGPS)
*/
void gps_ref_time_data_write_to_XML();
/*
* Blocking function that reads the iono model queue and updates the shared map, accessible from the PVT block
*/
void gps_iono_data_collector();
/*
* Write the latest GPS IONO model to XML file
*/
void gps_iono_data_write_to_XML();
/*
* Blocking function that reads the GPS assistance queue
*/
@@ -223,6 +201,13 @@ private:
boost::thread galileo_utc_model_data_collector_thread_;
boost::thread galileo_iono_data_collector_thread_;
void keyboard_listener();
// default filename for assistance data
const std::string eph_default_xml_filename = "./gps_ephemeris.xml";
const std::string utc_default_xml_filename = "./gps_utc_model.xml";
const std::string iono_default_xml_filename = "./gps_iono.xml";
const std::string ref_time_default_xml_filename = "./gps_ref_time.xml";
const std::string ref_location_default_xml_filename = "./gps_ref_location.xml";
};
#endif /*GNSS_SDR_CONTROL_THREAD_H_*/