mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-30 23:03:05 +00:00 
			
		
		
		
	Remove iostream from header files
and in redundant places such as in unit tests
This commit is contained in:
		| @@ -33,7 +33,6 @@ | ||||
| #define GNSS_SDR_HYBRID_LS_PVT_H_ | ||||
|  | ||||
| #include <fstream> | ||||
| #include <iostream> | ||||
| #include <map> | ||||
| #include <string> | ||||
| #include "ls_pvt.h" | ||||
|   | ||||
| @@ -33,11 +33,11 @@ | ||||
| #ifndef GNSS_SDR_KML_PRINTER_H_ | ||||
| #define GNSS_SDR_KML_PRINTER_H_ | ||||
|  | ||||
| #include <iostream> | ||||
| #include "pvt_solution.h" | ||||
| #include <fstream> | ||||
| #include <memory> | ||||
| #include <string> | ||||
| #include "pvt_solution.h" | ||||
|  | ||||
|  | ||||
| /*! | ||||
|  * \brief Prints PVT information to OGC KML format file (can be viewed with Google Earth) | ||||
|   | ||||
| @@ -37,7 +37,6 @@ | ||||
| #define GNSS_SDR_NMEA_PRINTER_H_ | ||||
|  | ||||
|  | ||||
| #include <iostream> | ||||
| #include <fstream> | ||||
| #include <string> | ||||
| #include "pvt_solution.h" | ||||
|   | ||||
| @@ -53,7 +53,6 @@ | ||||
|  | ||||
| #include <string> | ||||
| #include <fstream> | ||||
| #include <iostream> | ||||
| #include <sstream>  // for stringstream | ||||
| #include <iomanip>  // for setprecision | ||||
| #include <map> | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  */ | ||||
|  | ||||
| #include "rtcm_printer.h" | ||||
| #include <iostream> | ||||
| #include <iomanip> | ||||
| #include <fcntl.h>    // for O_RDWR | ||||
| #include <termios.h>  // for tcgetattr | ||||
|   | ||||
| @@ -35,7 +35,6 @@ | ||||
| #define GNSS_SDR_RTCM_PRINTER_H_ | ||||
|  | ||||
| #include <fstream>  // std::ofstream | ||||
| #include <iostream> // std::cout | ||||
| #include <memory>   // std::shared_ptr | ||||
| #include "rtcm.h" | ||||
|  | ||||
|   | ||||
| @@ -55,7 +55,6 @@ | ||||
| #define GNSS_SDR_RTKLIB_SOLVER_H_ | ||||
|  | ||||
| #include <fstream> | ||||
| #include <iostream> | ||||
| #include <map> | ||||
| #include <string> | ||||
| #include "rtklib_rtkpos.h" | ||||
|   | ||||
| @@ -34,6 +34,7 @@ | ||||
|  | ||||
| #include "labsat23_source.h" | ||||
| #include <gnuradio/io_signature.h> | ||||
| #include <iostream> | ||||
| #include <sstream> | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -32,10 +32,10 @@ | ||||
| #define GNSS_SDR_LABSAT23_SOURCE_H | ||||
|  | ||||
| #include <gnuradio/block.h> | ||||
| #include <string> | ||||
| #include <iostream> | ||||
| #include <cstdint> | ||||
| #include <fstream> | ||||
| #include <stdint.h> | ||||
| #include <string> | ||||
|  | ||||
|  | ||||
| class labsat23_source; | ||||
|  | ||||
|   | ||||
| @@ -34,7 +34,6 @@ | ||||
| #ifndef GNSS_SDR_SUPL_CLIENT_H_ | ||||
| #define GNSS_SDR_SUPL_CLIENT_H_ | ||||
|  | ||||
| #include <iostream> | ||||
| #include <fstream> | ||||
| #include <map> | ||||
| #include <string> | ||||
|   | ||||
| @@ -31,7 +31,6 @@ | ||||
|  */ | ||||
|  | ||||
| #include "glonass_gnav_utc_model.h" | ||||
| #include <cmath> | ||||
|  | ||||
| Glonass_Gnav_Utc_Model::Glonass_Gnav_Utc_Model() | ||||
| { | ||||
| @@ -44,6 +43,7 @@ Glonass_Gnav_Utc_Model::Glonass_Gnav_Utc_Model() | ||||
|     d_B2 = 0.0; | ||||
| } | ||||
|  | ||||
|  | ||||
| double Glonass_Gnav_Utc_Model::utc_time(double glonass_time_corrected) | ||||
| { | ||||
|     double t_utc; | ||||
|   | ||||
| @@ -36,7 +36,6 @@ | ||||
|  | ||||
| #include "boost/assign.hpp" | ||||
| #include <boost/serialization/nvp.hpp> | ||||
| #include <iostream> | ||||
|  | ||||
| /*! | ||||
|  * \brief This class is a storage for the GLONASS GNAV UTC MODEL data as described in GLONASS ICD (Edition 5.1) | ||||
|   | ||||
| @@ -39,8 +39,6 @@ Gnss_Satellite::Gnss_Satellite() | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| Gnss_Satellite::Gnss_Satellite(const std::string& system_, unsigned int PRN_) | ||||
| { | ||||
|     Gnss_Satellite::reset(); | ||||
| @@ -50,15 +48,10 @@ Gnss_Satellite::Gnss_Satellite(const std::string& system_, unsigned int PRN_) | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| Gnss_Satellite::~Gnss_Satellite() | ||||
| {} | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| void Gnss_Satellite::reset() | ||||
| { | ||||
|     system_set = {"GPS", "Glonass", "SBAS", "Galileo", "Beidou"}; | ||||
| @@ -74,7 +67,6 @@ void Gnss_Satellite::reset() | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
| std::ostream& operator<<(std::ostream &out, const Gnss_Satellite &sat) // output | ||||
| { | ||||
|     std::string tag(""); | ||||
| @@ -241,10 +233,6 @@ unsigned int Gnss_Satellite::get_PRN() const | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| std::string Gnss_Satellite::get_system() const | ||||
| { | ||||
|     // Get the satellite system {"GPS", "Glonass", "SBAS", "Galileo", "Beidou"} | ||||
| @@ -253,6 +241,7 @@ std::string Gnss_Satellite::get_system() const | ||||
|     return system_; | ||||
| } | ||||
|  | ||||
|  | ||||
| std::string Gnss_Satellite::get_system_short() const | ||||
| { | ||||
|     // Get the satellite system {"G", "R", "S", "E", "C"} | ||||
| @@ -260,8 +249,6 @@ std::string Gnss_Satellite::get_system_short() const | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| std::string Gnss_Satellite::get_block() const | ||||
| { | ||||
|     // Get the satellite block | ||||
| @@ -271,16 +258,14 @@ std::string Gnss_Satellite::get_block() const | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
| std::string Gnss_Satellite::what_block(const std::string& system_, unsigned int PRN_) | ||||
| { | ||||
|     std::string block_ = "Unknown"; | ||||
|     if (system_.compare("GPS") == 0) | ||||
|         { | ||||
|             // info from https://www.navcen.uscg.gov/?Do=constellationStatus | ||||
|             switch ( PRN_ ) | ||||
|             { | ||||
|             // info from https://www.navcen.uscg.gov/?Do=constellationStatus | ||||
|  | ||||
|             case 1 : | ||||
|                 block_ = std::string("IIF");   // Plane D | ||||
|                 break; | ||||
| @@ -382,14 +367,12 @@ std::string Gnss_Satellite::what_block(const std::string& system_, unsigned int | ||||
|             } | ||||
|         } | ||||
|  | ||||
|  | ||||
|     if (system_.compare("Glonass") == 0) | ||||
|         { | ||||
|             switch ( PRN_ ) | ||||
|         { | ||||
|             // Info from http://www.sdcm.ru/smglo/grupglo?version=eng&site=extern | ||||
|             // See also http://www.glonass-center.ru/en/GLONASS/ | ||||
|  | ||||
|             switch ( PRN_ ) | ||||
|             { | ||||
|             case 1 : | ||||
|                 block_ = std::string("1");   // Plane 1 | ||||
|                 rf_link = 1; | ||||
|   | ||||
| @@ -34,7 +34,6 @@ | ||||
|  | ||||
| #include <string> | ||||
| #include <set> | ||||
| #include <iostream> | ||||
| #include <map> | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
| #include "gps_cnav_ephemeris.h" | ||||
| #include <cmath> | ||||
| #include <iostream> | ||||
|  | ||||
| Gps_CNAV_Ephemeris::Gps_CNAV_Ephemeris() | ||||
| { | ||||
| @@ -201,7 +200,6 @@ double Gps_CNAV_Ephemeris::satellitePosition(double transmitTime) | ||||
|     const double A_REF = 26559710.0; // See IS-GPS-200H,  pp. 170 | ||||
|     double d_sqrt_A = sqrt(A_REF + d_DELTA_A); | ||||
|  | ||||
|  | ||||
|     const double GM = 3.986005e14;      //!< Universal gravitational constant times the mass of the Earth, [m^3/s^2] | ||||
|     const double OMEGA_DOT_REF = -2.6e-9; // semicircles / s, see IS-GPS-200H pp. 164 | ||||
|     const double OMEGA_EARTH_DOT = 7.2921151467e-5;  //!< Earth rotation rate, [rad/s] | ||||
|   | ||||
| @@ -51,11 +51,6 @@ double Gps_CNAV_Utc_Model::utc_time(double gpstime_corrected, int i_GPS_week) | ||||
|     double t_utc_daytime; | ||||
|     double Delta_t_UTC = d_DeltaT_LS + d_A0 + d_A1 * (gpstime_corrected - d_t_OT + 604800 * static_cast<double>(i_GPS_week - i_WN_T)); | ||||
|  | ||||
|     //std::cout<<"d_DeltaT_LS="<<d_DeltaT_LS | ||||
|     //        <<"d_A0="<<d_A0 | ||||
|     //        <<"d_A1="<<d_A1 | ||||
|     //        <<"d_t_OT="<<d_t_OT | ||||
|     //        <<"i_WN_T="<<i_WN_T<<std::endl; | ||||
|     // Determine if the effectivity time of the leap second event is in the past | ||||
|     int  weeksToLeapSecondEvent = i_WN_LSF - i_GPS_week; | ||||
|  | ||||
| @@ -104,7 +99,7 @@ double Gps_CNAV_Utc_Model::utc_time(double gpstime_corrected, int i_GPS_week) | ||||
|             /* 20.3.3.5.2.4c | ||||
|              * Whenever the effectivity time of the leap second event, as indicated by the | ||||
|              * WNLSF and DN values, is in the "past" (relative to the user's current time), | ||||
|              * and the user<EFBFBD>s current time does not fall in the time span as given above | ||||
|              * and the user's current time does not fall in the time span as given above | ||||
|              * in 20.3.3.5.2.4b,*/ | ||||
|             /* FOR CNAV: Replace the 20.3.3.5.2.4c with 30.3.3.6.2 UTC and GPS Time as follows */ | ||||
|             double tmp_d = (gpstime_corrected - d_t_OT + 604800 * static_cast<double>(i_GPS_week - i_WN_T)); | ||||
|   | ||||
| @@ -34,7 +34,7 @@ | ||||
|  | ||||
| #include "boost/assign.hpp" | ||||
| #include <boost/serialization/nvp.hpp> | ||||
| #include <iostream> | ||||
|  | ||||
|  | ||||
| /*! | ||||
|  * \brief This class is a storage for the GPS UTC MODEL data as described in in IS-GPS-200H | ||||
|   | ||||
| @@ -31,7 +31,6 @@ | ||||
|  | ||||
|  | ||||
| #include <string> | ||||
| #include <iostream> | ||||
| #include "file_configuration.h" | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -31,7 +31,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <boost/shared_ptr.hpp> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
|   | ||||
| @@ -42,7 +42,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <boost/make_shared.hpp> | ||||
| #include <glog/logging.h> | ||||
| #include <gnuradio/top_block.h> | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <boost/shared_ptr.hpp> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
|   | ||||
| @@ -33,7 +33,6 @@ | ||||
|  | ||||
| #include <chrono> | ||||
| #include <fstream> | ||||
| #include <iostream> | ||||
| #include <stdexcept> | ||||
| #include <boost/shared_ptr.hpp> | ||||
| #include <glog/logging.h> | ||||
|   | ||||
| @@ -30,11 +30,7 @@ | ||||
|  * ------------------------------------------------------------------------- | ||||
|  */ | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <boost/shared_ptr.hpp> | ||||
| #include <boost/thread.hpp> | ||||
| #include <gnuradio/top_block.h> | ||||
|   | ||||
| @@ -30,7 +30,6 @@ | ||||
|  */ | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
| #include <chrono> | ||||
| #include <cstdlib> | ||||
| #include <iostream> | ||||
| #include <boost/chrono.hpp> | ||||
| #include <boost/make_shared.hpp> | ||||
| #include <gnuradio/top_block.h> | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
|   | ||||
| @@ -33,7 +33,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <boost/filesystem.hpp> | ||||
| #include <boost/make_shared.hpp> | ||||
| #include <glog/logging.h> | ||||
|   | ||||
| @@ -31,7 +31,6 @@ | ||||
|  | ||||
| #include <chrono> | ||||
| #include <cstdlib> | ||||
| #include <iostream> | ||||
| #include <boost/make_shared.hpp> | ||||
| #include <boost/thread.hpp> | ||||
| #include <gnuradio/top_block.h> | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <boost/shared_ptr.hpp> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
|   | ||||
| @@ -33,7 +33,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <stdexcept> | ||||
| #include <glog/logging.h> | ||||
| #include <gnuradio/top_block.h> | ||||
|   | ||||
| @@ -33,7 +33,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <boost/shared_ptr.hpp> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
|   | ||||
| @@ -33,7 +33,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <boost/filesystem.hpp> | ||||
| #include <boost/make_shared.hpp> | ||||
| #include <gnuradio/top_block.h> | ||||
|   | ||||
| @@ -30,8 +30,7 @@ | ||||
|  | ||||
| #include <chrono> | ||||
| #include <complex> | ||||
| #include <iostream> | ||||
| #include <stdint.h> | ||||
| #include <cstdint> | ||||
| #include <gflags/gflags.h> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
|   | ||||
| @@ -30,8 +30,7 @@ | ||||
|  | ||||
| #include <chrono> | ||||
| #include <complex> | ||||
| #include <iostream> | ||||
| #include <stdint.h> | ||||
| #include <cstdint> | ||||
| #include <gflags/gflags.h> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
|   | ||||
| @@ -30,8 +30,7 @@ | ||||
|  | ||||
| #include <chrono> | ||||
| #include <complex> | ||||
| #include <iostream> | ||||
| #include <stdint.h> | ||||
| #include <cstdint> | ||||
| #include <gflags/gflags.h> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
|   | ||||
| @@ -30,8 +30,7 @@ | ||||
|  | ||||
| #include <chrono> | ||||
| #include <complex> | ||||
| #include <iostream> | ||||
| #include <stdint.h> | ||||
| #include <cstdint> | ||||
| #include <gflags/gflags.h> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
|   | ||||
| @@ -30,10 +30,10 @@ | ||||
|  * ------------------------------------------------------------------------- | ||||
|  */ | ||||
|  | ||||
| #include <iostream> | ||||
| #include <cmath> | ||||
| #include <matio.h> | ||||
| #include "acquisition_dump_reader.h" | ||||
| #include <matio.h> | ||||
| #include <cmath> | ||||
| #include <iostream> | ||||
|  | ||||
| bool acquisition_dump_reader::read_binary_acq() | ||||
| { | ||||
|   | ||||
| @@ -29,6 +29,7 @@ | ||||
|  */ | ||||
|  | ||||
| #include "observables_dump_reader.h" | ||||
| #include <iostream> | ||||
|  | ||||
| bool observables_dump_reader::read_binary_obs() | ||||
| { | ||||
|   | ||||
| @@ -31,7 +31,6 @@ | ||||
| #ifndef GNSS_SDR_OBSERVABLES_DUMP_READER_H | ||||
| #define GNSS_SDR_OBSERVABLES_DUMP_READER_H | ||||
|  | ||||
| #include <iostream> | ||||
| #include <fstream> | ||||
| #include <string> | ||||
| #include <vector> | ||||
|   | ||||
| @@ -29,6 +29,7 @@ | ||||
|  */ | ||||
|  | ||||
| #include "tlm_dump_reader.h" | ||||
| #include <iostream> | ||||
|  | ||||
| bool tlm_dump_reader::read_binary_obs() | ||||
| { | ||||
|   | ||||
| @@ -31,7 +31,6 @@ | ||||
| #ifndef GNSS_SDR_TLM_DUMP_READER_H | ||||
| #define GNSS_SDR_TLM_DUMP_READER_H | ||||
|  | ||||
| #include <iostream> | ||||
| #include <fstream> | ||||
| #include <string> | ||||
| #include <vector> | ||||
|   | ||||
| @@ -29,6 +29,7 @@ | ||||
|  */ | ||||
|  | ||||
| #include "tracking_dump_reader.h" | ||||
| #include <iostream> | ||||
|  | ||||
| bool tracking_dump_reader::read_binary_obs() | ||||
| { | ||||
|   | ||||
| @@ -31,7 +31,6 @@ | ||||
| #ifndef GNSS_SDR_TRACKING_DUMP_READER_H | ||||
| #define GNSS_SDR_TRACKING_DUMP_READER_H | ||||
|  | ||||
| #include <iostream> | ||||
| #include <fstream> | ||||
| #include <string> | ||||
| #include <vector> | ||||
|   | ||||
| @@ -29,6 +29,7 @@ | ||||
|  */ | ||||
|  | ||||
| #include "tracking_true_obs_reader.h" | ||||
| #include <iostream> | ||||
|  | ||||
| bool tracking_true_obs_reader::read_binary_obs() | ||||
| { | ||||
|   | ||||
| @@ -31,7 +31,6 @@ | ||||
| #ifndef GNSS_SDR_TRACKING_TRUE_OBS_READER_H | ||||
| #define GNSS_SDR_TRACKING_TRUE_OBS_READER_H | ||||
|  | ||||
| #include <iostream> | ||||
| #include <fstream> | ||||
| #include <string> | ||||
| #include <vector> | ||||
|   | ||||
| @@ -29,6 +29,7 @@ | ||||
|  */ | ||||
|  | ||||
| #include "true_observables_reader.h" | ||||
| #include <iostream> | ||||
|  | ||||
| bool true_observables_reader::read_binary_obs() | ||||
| { | ||||
|   | ||||
| @@ -31,7 +31,6 @@ | ||||
| #ifndef GNSS_SDR_TRUE_OBSERVABLES_READER_H | ||||
| #define GNSS_SDR_TRUE_OBSERVABLES_READER_H | ||||
|  | ||||
| #include <iostream> | ||||
| #include <fstream> | ||||
| #include <string> | ||||
| #include <vector> | ||||
|   | ||||
| @@ -33,7 +33,6 @@ | ||||
| #include <unistd.h> | ||||
| #include <chrono> | ||||
| #include <exception> | ||||
| #include <iostream> | ||||
| #include <armadillo> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
|   | ||||
| @@ -30,7 +30,6 @@ | ||||
|  | ||||
|  | ||||
| #include <cstdio> | ||||
| #include <iostream> | ||||
| #include <fstream> | ||||
| #include <string> | ||||
| #include "nmea_printer.h" | ||||
|   | ||||
| @@ -28,7 +28,6 @@ | ||||
|  * ------------------------------------------------------------------------- | ||||
|  */ | ||||
|  | ||||
| #include <iostream> | ||||
| #include <string> | ||||
| #include "rinex_printer.h" | ||||
|  | ||||
|   | ||||
| @@ -28,13 +28,9 @@ | ||||
|  * ------------------------------------------------------------------------- | ||||
|  */ | ||||
|  | ||||
| //#include <fstream> | ||||
| //#include <map> | ||||
|  | ||||
| #include <string> | ||||
| //#include <boost/archive/xml_iarchive.hpp> | ||||
| //#include <boost/serialization/nvp.hpp> | ||||
| #include "rtcm_printer.h" | ||||
| //#include "gps_ephemeris.h" | ||||
|  | ||||
|  | ||||
| TEST(RtcmPrinterTest, Instantiate) | ||||
| @@ -51,22 +47,6 @@ TEST(RtcmPrinterTest, Instantiate) | ||||
|  | ||||
| TEST(RtcmPrinterTest, Run) | ||||
| { | ||||
|     //    std::string file_name = "./gps_ephemeris_rx.xml"; | ||||
|     //    std::map<int,Gps_Ephemeris> gps_ephemeris_map; | ||||
|     //    try | ||||
|     //    { | ||||
|     //            std::ifstream ifs(file_name.c_str(), std::ifstream::binary | std::ifstream::in); | ||||
|     //            boost::archive::xml_iarchive xml(ifs); | ||||
|     //            gps_ephemeris_map.clear(); | ||||
|     //            xml >> boost::serialization::make_nvp("GNSS-SDR_ephemeris_map", gps_ephemeris_map); | ||||
|     //            ifs.close(); | ||||
|     //    } | ||||
|     //    catch (const std::exception& e) | ||||
|     //    { | ||||
|     //            //LOG(WARNING) << e.what() << "File: " << file_name; | ||||
|     //            //std::cout << "File not found" << std::endl; | ||||
|     //    } | ||||
|  | ||||
|     std::string filename = "test.rtcm"; | ||||
|     bool flag_rtcm_tty_port = false; | ||||
|     std::string rtcm_dump_devname = "/dev/pts/4"; | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
| #include <gnuradio/analog/sig_source_c.h> | ||||
|   | ||||
| @@ -30,7 +30,6 @@ | ||||
|  */ | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
| #include <gnuradio/analog/sig_source_c.h> | ||||
|   | ||||
| @@ -33,7 +33,6 @@ | ||||
| #include <unistd.h> | ||||
| #include <chrono> | ||||
| #include <exception> | ||||
| #include <iostream> | ||||
| #include <string> | ||||
| #include <armadillo> | ||||
| #include <gnuradio/top_block.h> | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
|   | ||||
| @@ -31,7 +31,6 @@ | ||||
|  */ | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <unistd.h> | ||||
| #include <vector> | ||||
| #include <armadillo> | ||||
|   | ||||
| @@ -33,7 +33,6 @@ | ||||
|  | ||||
| #include <chrono> | ||||
| #include <fcntl.h> | ||||
| #include <iostream> | ||||
| #include <unistd.h> | ||||
| #include <armadillo> | ||||
| #include <boost/thread.hpp>// to test the FPGA we have to create a simultaneous task to send the samples using the DMA and stop the test | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
|  | ||||
| #include <chrono> | ||||
| #include <iostream> | ||||
| #include <gnuradio/top_block.h> | ||||
| #include <gnuradio/blocks/file_source.h> | ||||
| #include <gnuradio/analog/sig_source_waveform.h> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez