mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 07:13:03 +00:00 
			
		
		
		
	Updating the Rtcm printer
This commit is contained in:
		| @@ -84,23 +84,23 @@ Rtcm_Printer::~Rtcm_Printer() | |||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
| bool Rtcm_Printer::Print_Rtcm_M1001(const Gps_Ephemeris& gps_eph, double obs_time, const std::map<int, Gnss_Synchro> & pseudoranges) | bool Rtcm_Printer::Print_Rtcm_MT1001(const Gps_Ephemeris& gps_eph, double obs_time, const std::map<int, Gnss_Synchro> & pseudoranges) | ||||||
| { | { | ||||||
|     std::string m1001 = rtcm->print_M1001( gps_eph, obs_time, pseudoranges); |     std::string m1001 = rtcm->print_MT1001( gps_eph, obs_time, pseudoranges); | ||||||
|     Rtcm_Printer::Print_Message(m1001); |     Rtcm_Printer::Print_Message(m1001); | ||||||
|     return true; |     return true; | ||||||
| } | } | ||||||
|  |  | ||||||
| bool Rtcm_Printer::Print_Rtcm_M1019(const Gps_Ephemeris & gps_eph) | bool Rtcm_Printer::Print_Rtcm_MT1019(const Gps_Ephemeris & gps_eph) | ||||||
| { | { | ||||||
|     std::string m1019 = rtcm->print_M1019(gps_eph); |     std::string m1019 = rtcm->print_MT1019(gps_eph); | ||||||
|     Rtcm_Printer::Print_Message(m1019); |     Rtcm_Printer::Print_Message(m1019); | ||||||
|     return true; |     return true; | ||||||
| } | } | ||||||
|  |  | ||||||
| bool Rtcm_Printer::Print_Rtcm_M1045(const Galileo_Ephemeris & gal_eph) | bool Rtcm_Printer::Print_Rtcm_MT1045(const Galileo_Ephemeris & gal_eph) | ||||||
| { | { | ||||||
|     std::string m1045 = rtcm->print_M1045(gal_eph); |     std::string m1045 = rtcm->print_MT1045(gal_eph); | ||||||
|     Rtcm_Printer::Print_Message(m1045); |     Rtcm_Printer::Print_Message(m1045); | ||||||
|     return true; |     return true; | ||||||
| } | } | ||||||
| @@ -108,8 +108,8 @@ bool Rtcm_Printer::Print_Rtcm_M1045(const Galileo_Ephemeris & gal_eph) | |||||||
|  |  | ||||||
| int Rtcm_Printer::init_serial(std::string serial_device) | int Rtcm_Printer::init_serial(std::string serial_device) | ||||||
| { | { | ||||||
|     /*! |     /* | ||||||
|      * Opens the serial device and sets the default baud rate for a NMEA transmission (9600,8,N,1) |      * Opens the serial device and sets the default baud rate for a RTCM transmission (9600,8,N,1) | ||||||
|      */ |      */ | ||||||
|     int fd = 0; |     int fd = 0; | ||||||
|     struct termios options; |     struct termios options; | ||||||
| @@ -183,8 +183,8 @@ bool Rtcm_Printer::Print_Message(std::string message) | |||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
| std::string Rtcm_Printer::print_M1005_test() | std::string Rtcm_Printer::print_MT1005_test() | ||||||
| { | { | ||||||
|     std::string test = rtcm->print_M1005_test(); |     std::string test = rtcm->print_MT1005_test(); | ||||||
|     return test; |     return test; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -55,11 +55,11 @@ public: | |||||||
|      */ |      */ | ||||||
|     ~Rtcm_Printer(); |     ~Rtcm_Printer(); | ||||||
|  |  | ||||||
|     bool Print_Rtcm_M1001(const Gps_Ephemeris& gps_eph, double obs_time, const std::map<int, Gnss_Synchro> & pseudoranges); |     bool Print_Rtcm_MT1001(const Gps_Ephemeris& gps_eph, double obs_time, const std::map<int, Gnss_Synchro> & pseudoranges); | ||||||
|     bool Print_Rtcm_M1019(const Gps_Ephemeris & gps_eph); //<! GPS Ephemeris, should be broadcast in the event that the IODC does not match the IODE, and every 2 minutes. |     bool Print_Rtcm_MT1019(const Gps_Ephemeris & gps_eph); //<! GPS Ephemeris, should be broadcast in the event that the IODC does not match the IODE, and every 2 minutes. | ||||||
|     bool Print_Rtcm_M1045(const Galileo_Ephemeris & gal_eph); //<! Galileo Ephemeris, should be broadcast every 2 minutes |     bool Print_Rtcm_MT1045(const Galileo_Ephemeris & gal_eph); //<! Galileo Ephemeris, should be broadcast every 2 minutes | ||||||
|  |  | ||||||
|     std::string print_M1005_test(); //<!  For testing purposes |     std::string print_MT1005_test(); //<!  For testing purposes | ||||||
|  |  | ||||||
| private: | private: | ||||||
|     std::string rtcm_filename; // String with the RTCM log filename |     std::string rtcm_filename; // String with the RTCM log filename | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez