diff --git a/src/algorithms/PVT/libs/geojson_printer.cc b/src/algorithms/PVT/libs/geojson_printer.cc index 504393422..e38984a88 100644 --- a/src/algorithms/PVT/libs/geojson_printer.cc +++ b/src/algorithms/PVT/libs/geojson_printer.cc @@ -31,14 +31,19 @@ #include "geojson_printer.h" +#include "pvt_solution.h" #include #include // for create_directories, exists #include // for path, operator<< #include // for filesystem +#include // for error_code #include -#include -#include -#include +#include // for remove +#include // for tm +#include // for exception +#include // for operator<< +#include // for cout, cerr +#include // for stringstream GeoJSON_Printer::GeoJSON_Printer(const std::string& base_path) diff --git a/src/algorithms/PVT/libs/geojson_printer.h b/src/algorithms/PVT/libs/geojson_printer.h index b9bdcdb28..a74a9599d 100644 --- a/src/algorithms/PVT/libs/geojson_printer.h +++ b/src/algorithms/PVT/libs/geojson_printer.h @@ -33,11 +33,12 @@ #ifndef GNSS_SDR_GEOJSON_PRINTER_H_ #define GNSS_SDR_GEOJSON_PRINTER_H_ -#include "pvt_solution.h" + #include #include #include +class Pvt_Solution; /*! * \brief Prints PVT solutions in GeoJSON format file diff --git a/src/algorithms/PVT/libs/gpx_printer.cc b/src/algorithms/PVT/libs/gpx_printer.cc index 42c32ba5c..3066ae824 100644 --- a/src/algorithms/PVT/libs/gpx_printer.cc +++ b/src/algorithms/PVT/libs/gpx_printer.cc @@ -31,13 +31,19 @@ #include "gpx_printer.h" +#include "rtklib_solver.h" #include #include // for create_directories, exists #include // for path, operator<< #include // for filesystem +#include // for error_code #include -#include -#include +#include // for remove +#include // for tm +#include // for exception +#include // for operator<< +#include // for cout, cerr +#include // for stringstream Gpx_Printer::Gpx_Printer(const std::string& base_path) diff --git a/src/algorithms/PVT/libs/gpx_printer.h b/src/algorithms/PVT/libs/gpx_printer.h index 740be545c..e78269f8c 100644 --- a/src/algorithms/PVT/libs/gpx_printer.h +++ b/src/algorithms/PVT/libs/gpx_printer.h @@ -33,11 +33,12 @@ #ifndef GNSS_SDR_GPX_PRINTER_H_ #define GNSS_SDR_GPX_PRINTER_H_ -#include "rtklib_solver.h" + #include #include #include +class Rtklib_Solver; /*! * \brief Prints PVT information to GPX format file diff --git a/src/algorithms/PVT/libs/kml_printer.cc b/src/algorithms/PVT/libs/kml_printer.cc index 6157f5bc9..e1335490c 100644 --- a/src/algorithms/PVT/libs/kml_printer.cc +++ b/src/algorithms/PVT/libs/kml_printer.cc @@ -31,13 +31,19 @@ */ #include "kml_printer.h" +#include "rtklib_solver.h" #include #include // for create_directories, exists #include // for path, operator<< #include // for filesystem +#include // for error_code #include -#include +#include // for remove +#include // for tm +#include // for exception +#include // for cout, cerr #include +#include Kml_Printer::Kml_Printer(const std::string& base_path) diff --git a/src/algorithms/PVT/libs/kml_printer.h b/src/algorithms/PVT/libs/kml_printer.h index bc2db1198..6295242f6 100644 --- a/src/algorithms/PVT/libs/kml_printer.h +++ b/src/algorithms/PVT/libs/kml_printer.h @@ -33,12 +33,12 @@ #ifndef GNSS_SDR_KML_PRINTER_H_ #define GNSS_SDR_KML_PRINTER_H_ -#include "rtklib_solver.h" -#include -#include -#include +#include // for ofstream +#include // for shared_ptr +class Rtklib_Solver; + /*! * \brief Prints PVT information to OGC KML format file (can be viewed with Google Earth) * diff --git a/src/algorithms/PVT/libs/nmea_printer.cc b/src/algorithms/PVT/libs/nmea_printer.cc index f01d12272..9186d48e0 100644 --- a/src/algorithms/PVT/libs/nmea_printer.cc +++ b/src/algorithms/PVT/libs/nmea_printer.cc @@ -35,14 +35,16 @@ #include "nmea_printer.h" #include "rtklib_solution.h" -#include +#include "rtklib_solver.h" #include // for create_directories, exists #include // for path, operator<< #include // for filesystem +#include // for error_code #include #include #include #include +#include // for cout, cerr #include diff --git a/src/algorithms/PVT/libs/nmea_printer.h b/src/algorithms/PVT/libs/nmea_printer.h index 6ceab023c..f821ad94b 100644 --- a/src/algorithms/PVT/libs/nmea_printer.h +++ b/src/algorithms/PVT/libs/nmea_printer.h @@ -36,11 +36,12 @@ #ifndef GNSS_SDR_NMEA_PRINTER_H_ #define GNSS_SDR_NMEA_PRINTER_H_ -#include "rtklib_solver.h" -#include -#include -#include +#include // for ptime +#include // for ofstream +#include // for shared_ptr +#include // for string +class Rtklib_Solver; /*! * \brief This class provides a implementation of a subset of the NMEA-0183 standard for interfacing diff --git a/src/algorithms/PVT/libs/rinex_printer.cc b/src/algorithms/PVT/libs/rinex_printer.cc index c6ff89fca..2e4b55a37 100644 --- a/src/algorithms/PVT/libs/rinex_printer.cc +++ b/src/algorithms/PVT/libs/rinex_printer.cc @@ -29,6 +29,27 @@ */ #include "rinex_printer.h" +#include "Beidou_B1I.h" +#include "GLONASS_L1_L2_CA.h" +#include "GPS_L1_CA.h" +#include "Galileo_E1.h" +#include "beidou_dnav_ephemeris.h" +#include "beidou_dnav_iono.h" +#include "beidou_dnav_utc_model.h" +#include "galileo_ephemeris.h" +#include "galileo_iono.h" +#include "galileo_utc_model.h" +#include "glonass_gnav_almanac.h" +#include "glonass_gnav_ephemeris.h" +#include "glonass_gnav_utc_model.h" +#include "gnss_synchro.h" +#include "gps_cnav_ephemeris.h" +#include "gps_cnav_iono.h" +#include "gps_cnav_utc_model.h" +#include "gps_ephemeris.h" +#include "gps_iono.h" +#include "gps_navigation_message.h" +#include "gps_utc_model.h" #include #include #include @@ -38,8 +59,9 @@ #include #include // for min and max #include // for floor -#include // for getenv() +#include // for memcpy #include +#include // for cout #include #include #include diff --git a/src/algorithms/PVT/libs/rinex_printer.h b/src/algorithms/PVT/libs/rinex_printer.h index 0e189dc80..09acc2c5b 100644 --- a/src/algorithms/PVT/libs/rinex_printer.h +++ b/src/algorithms/PVT/libs/rinex_printer.h @@ -51,25 +51,33 @@ #ifndef GNSS_SDR_RINEX_PRINTER_H_ #define GNSS_SDR_RINEX_PRINTER_H_ -#include "Beidou_B1I.h" -#include "GLONASS_L1_L2_CA.h" -#include "GPS_L1_CA.h" -#include "Galileo_E1.h" -#include "beidou_dnav_navigation_message.h" -#include "galileo_navigation_message.h" -#include "glonass_gnav_navigation_message.h" -#include "gnss_synchro.h" -#include "gps_cnav_navigation_message.h" -#include "gps_navigation_message.h" #include -#include -#include +#include // for int32_t +#include // for strtol, strtod +#include // for fstream #include // for setprecision -#include +#include // for map #include // for stringstream -#include +#include // for string + +class Beidou_Dnav_Ephemeris; +class Beidou_Dnav_Iono; +class Beidou_Dnav_Utc_Model; +class Galileo_Ephemeris; +class Galileo_Iono; +class Galileo_Utc_Model; +class Glonass_Gnav_Almanac; +class Glonass_Gnav_Ephemeris; +class Glonass_Gnav_Utc_Model; +class Gnss_Synchro; +class Gps_CNAV_Ephemeris; +class Gps_CNAV_Iono; +class Gps_CNAV_Utc_Model; +class Gps_Ephemeris; +class Gps_Iono; +class Gps_Navigation_Message; +class Gps_Utc_Model; -class Sbas_Raw_Msg; /*! * \brief Class that handles the generation of Receiver diff --git a/src/algorithms/PVT/libs/rtcm.cc b/src/algorithms/PVT/libs/rtcm.cc index 177ea25f6..e0a0c10a5 100644 --- a/src/algorithms/PVT/libs/rtcm.cc +++ b/src/algorithms/PVT/libs/rtcm.cc @@ -29,8 +29,11 @@ */ #include "rtcm.h" +#include "GLONASS_L1_L2_CA.h" +#include "GPS_L1_CA.h" #include "GPS_L2C.h" #include "Galileo_E1.h" +#include "Galileo_E5a.h" #include // for to_upper_copy #include #include @@ -39,6 +42,7 @@ #include // std::chrono::seconds #include // for std::fmod #include // for strtol +#include // for cout #include // for std::stringstream diff --git a/src/algorithms/PVT/libs/rtcm.h b/src/algorithms/PVT/libs/rtcm.h index 6fd9208af..5ff791503 100644 --- a/src/algorithms/PVT/libs/rtcm.h +++ b/src/algorithms/PVT/libs/rtcm.h @@ -34,11 +34,12 @@ #include "concurrent_queue.h" -#include "galileo_fnav_message.h" -#include "glonass_gnav_navigation_message.h" #include "gnss_synchro.h" -#include "gps_cnav_navigation_message.h" -#include "gps_navigation_message.h" +#include +#include +#include +#include +#include #include #include #include diff --git a/src/algorithms/PVT/libs/rtcm_printer.cc b/src/algorithms/PVT/libs/rtcm_printer.cc index e999efc42..fce92af08 100644 --- a/src/algorithms/PVT/libs/rtcm_printer.cc +++ b/src/algorithms/PVT/libs/rtcm_printer.cc @@ -32,17 +32,26 @@ */ #include "rtcm_printer.h" +#include "galileo_ephemeris.h" +#include "glonass_gnav_ephemeris.h" +#include "glonass_gnav_utc_model.h" +#include "gnss_synchro.h" +#include "gps_cnav_ephemeris.h" +#include "gps_ephemeris.h" +#include "rtcm.h" #include #include // for create_directories, exists #include // for path, operator<< #include // for filesystem +#include // for error_codes #include -#include -#include -#include // for O_RDWR -#include +#include // for remove +#include // for tm +#include // for exception +#include // for O_RDWR +#include // for cout, cerr #include // for tcgetattr -#include +#include // for close, write Rtcm_Printer::Rtcm_Printer(const std::string& filename, bool flag_rtcm_file_dump, bool flag_rtcm_server, bool flag_rtcm_tty_port, uint16_t rtcm_tcp_port, uint16_t rtcm_station_id, const std::string& rtcm_dump_devname, bool time_tag_name, const std::string& base_path) diff --git a/src/algorithms/PVT/libs/rtcm_printer.h b/src/algorithms/PVT/libs/rtcm_printer.h index 9db248eb9..4d42c1189 100644 --- a/src/algorithms/PVT/libs/rtcm_printer.h +++ b/src/algorithms/PVT/libs/rtcm_printer.h @@ -34,10 +34,18 @@ #ifndef GNSS_SDR_RTCM_PRINTER_H_ #define GNSS_SDR_RTCM_PRINTER_H_ -#include "rtcm.h" -#include // std::ofstream -#include -#include // std::shared_ptr +#include // for int32_t +#include // for std::ofstream +#include // for std::map +#include // std::shared_ptr + +class Galileo_Ephemeris; +class Glonass_Gnav_Ephemeris; +class Glonass_Gnav_Utc_Model; +class Gnss_Synchro; +class Gps_CNAV_Ephemeris; +class Gps_Ephemeris; +class Rtcm; /*! * \brief This class provides a implementation of a subset of the RTCM Standard 10403.2 messages diff --git a/src/algorithms/acquisition/adapters/CMakeLists.txt b/src/algorithms/acquisition/adapters/CMakeLists.txt index bfe54fa8e..6ce7c7298 100644 --- a/src/algorithms/acquisition/adapters/CMakeLists.txt +++ b/src/algorithms/acquisition/adapters/CMakeLists.txt @@ -92,15 +92,17 @@ add_library(acquisition_adapters ${ACQ_ADAPTER_SOURCES} ${ACQ_ADAPTER_HEADERS}) target_link_libraries(acquisition_adapters PUBLIC - Gnuradio::blocks algorithms_libs gnss_sdr_flags acquisition_gr_blocks core_system_parameters + Gnuradio::blocks + Volk::volk PRIVATE Boost::boost Gflags::gflags Glog::glog + Gnuradio::fft Volkgnsssdr::volkgnsssdr acquisition_libs ) diff --git a/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition_fpga.cc b/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition_fpga.cc index 1c3d594bf..cc3cfc31c 100644 --- a/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition_fpga.cc +++ b/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition_fpga.cc @@ -34,7 +34,15 @@ #include "configuration_interface.h" #include "galileo_e1_signal_processing.h" #include "gnss_sdr_flags.h" +#include "gnss_synchro.h" #include +#include // for fft_complex +#include // for gr_complex +#include // for volk_32fc_conjugate_32fc +#include +#include // for abs, pow, floor +#include // for complex +#include // for memcpy GalileoE1PcpsAmbiguousAcquisitionFpga::GalileoE1PcpsAmbiguousAcquisitionFpga( diff --git a/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition_fpga.h b/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition_fpga.h index 7f71790ac..38a096c58 100644 --- a/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition_fpga.h +++ b/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition_fpga.h @@ -34,14 +34,15 @@ #include "acquisition_interface.h" #include "complex_byte_to_float_x2.h" -#include "gnss_synchro.h" #include "pcps_acquisition_fpga.h" #include #include -#include +#include // for basic_block_sptr, top_... +#include // for lv_16sc_t +#include // for size_t #include - +class Gnss_Synchro; class ConfigurationInterface; /*! diff --git a/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition_fpga.cc b/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition_fpga.cc index ef1dcc215..9c1535261 100644 --- a/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition_fpga.cc +++ b/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition_fpga.cc @@ -34,9 +34,15 @@ #include "configuration_interface.h" #include "galileo_e5_signal_processing.h" #include "gnss_sdr_flags.h" -#include +#include "gnss_synchro.h" #include -#include +#include // for fft_complex +#include // for gr_complex +#include // for volk_32fc_conjugate_32fc +#include +#include // for abs, pow, floor +#include // for complex +#include // for strcpy, memcpy GalileoE5aPcpsAcquisitionFpga::GalileoE5aPcpsAcquisitionFpga(ConfigurationInterface* configuration, diff --git a/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition_fpga.h b/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition_fpga.h index 462235a43..d312e9955 100644 --- a/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition_fpga.h +++ b/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition_fpga.h @@ -34,12 +34,15 @@ #include "acquisition_interface.h" -#include "gnss_synchro.h" #include "pcps_acquisition_fpga.h" #include -#include +#include // for basic_block_sptr, top_... +#include // for lv_16sc_t +#include // for size_t +#include #include +class Gnss_Synchro; class ConfigurationInterface; class GalileoE5aPcpsAcquisitionFpga : public AcquisitionInterface diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fpga.cc b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fpga.cc index 3c50cb3b7..42f0fef79 100644 --- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fpga.cc +++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fpga.cc @@ -36,10 +36,16 @@ #include "GPS_L1_CA.h" #include "configuration_interface.h" #include "gnss_sdr_flags.h" +#include "gnss_synchro.h" #include "gps_sdr_signal_processing.h" #include #include -#include +#include // for gr_complex +#include // for volk_32fc_conjugate_32fc +#include +#include // for abs, pow, floor +#include // for complex +#include // for memcpy #define NUM_PRNs 32 diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fpga.h b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fpga.h index e5310414c..1977fd69b 100644 --- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fpga.h +++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fpga.h @@ -36,11 +36,13 @@ #define GNSS_SDR_GPS_L1_CA_PCPS_ACQUISITION_FPGA_H_ #include "acquisition_interface.h" -#include "gnss_synchro.h" #include "pcps_acquisition_fpga.h" -#include +#include // for basic_block_sptr, top_block_sptr +#include // for lv_16sc_t +#include #include +class Gnss_Synchro; class ConfigurationInterface; /*! diff --git a/src/algorithms/acquisition/adapters/gps_l2_m_pcps_acquisition_fpga.cc b/src/algorithms/acquisition/adapters/gps_l2_m_pcps_acquisition_fpga.cc index 27115e024..9599fe91d 100644 --- a/src/algorithms/acquisition/adapters/gps_l2_m_pcps_acquisition_fpga.cc +++ b/src/algorithms/acquisition/adapters/gps_l2_m_pcps_acquisition_fpga.cc @@ -35,9 +35,16 @@ #include "GPS_L2C.h" #include "configuration_interface.h" #include "gnss_sdr_flags.h" +#include "gnss_synchro.h" #include "gps_l2c_signal.h" -#include #include +#include // for fft_complex +#include // for gr_complex +#include // for volk_32fc_conjugate_32fc +#include +#include // for abs, pow, floor +#include // for complex +#include // for memcpy #define NUM_PRNs 32 diff --git a/src/algorithms/acquisition/adapters/gps_l2_m_pcps_acquisition_fpga.h b/src/algorithms/acquisition/adapters/gps_l2_m_pcps_acquisition_fpga.h index 743fb6062..cd0ced64c 100644 --- a/src/algorithms/acquisition/adapters/gps_l2_m_pcps_acquisition_fpga.h +++ b/src/algorithms/acquisition/adapters/gps_l2_m_pcps_acquisition_fpga.h @@ -36,14 +36,15 @@ #include "acquisition_interface.h" #include "complex_byte_to_float_x2.h" -#include "gnss_synchro.h" #include "pcps_acquisition_fpga.h" #include #include -#include +#include +#include // for lv_16sc_t +#include #include - +class Gnss_Synchro; class ConfigurationInterface; /*! diff --git a/src/algorithms/acquisition/adapters/gps_l5i_pcps_acquisition_fpga.cc b/src/algorithms/acquisition/adapters/gps_l5i_pcps_acquisition_fpga.cc index 5a56ee241..943cdc422 100644 --- a/src/algorithms/acquisition/adapters/gps_l5i_pcps_acquisition_fpga.cc +++ b/src/algorithms/acquisition/adapters/gps_l5i_pcps_acquisition_fpga.cc @@ -36,9 +36,16 @@ #include "GPS_L5.h" #include "configuration_interface.h" #include "gnss_sdr_flags.h" +#include "gnss_synchro.h" #include "gps_l5_signal.h" -#include #include +#include // for fft_complex +#include // for gr_complex +#include // for volk_32fc_conjugate_32fc +#include +#include // for abs, pow, floor +#include // for complex +#include // for memcpy #define NUM_PRNs 32 diff --git a/src/algorithms/acquisition/adapters/gps_l5i_pcps_acquisition_fpga.h b/src/algorithms/acquisition/adapters/gps_l5i_pcps_acquisition_fpga.h index 8a9a9e748..1f7106a87 100644 --- a/src/algorithms/acquisition/adapters/gps_l5i_pcps_acquisition_fpga.h +++ b/src/algorithms/acquisition/adapters/gps_l5i_pcps_acquisition_fpga.h @@ -37,14 +37,15 @@ #include "acquisition_interface.h" #include "complex_byte_to_float_x2.h" -#include "gnss_synchro.h" #include "pcps_acquisition_fpga.h" #include #include -#include +#include // for basic_block_sptr, top_... +#include // for lv_16sc_t +#include // for size_t #include - +class Gnss_Synchro; class ConfigurationInterface; /*! diff --git a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition.cc b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition.cc index 0d057d87d..e4b5f2a7c 100644 --- a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition.cc +++ b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition.cc @@ -36,13 +36,22 @@ #include "pcps_acquisition.h" #include "GLONASS_L1_L2_CA.h" // for GLONASS_TWO_PI #include "GPS_L1_CA.h" // for GPS_TWO_PI +#include "gnss_frequencies.h" #include "gnss_sdr_create_directory.h" +#include "gnss_synchro.h" #include #include #include #include +#include // for from_long +#include // for mp +#include #include -#include +#include // for fill_n, min +#include // for floor, fmod, rint, ceil +#include // for memcpy +#include +#include pcps_acquisition_sptr pcps_make_acquisition(const Acq_Conf& conf_) diff --git a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition.h b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition.h index 0447dd308..a86bebf99 100644 --- a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition.h +++ b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition.h @@ -53,14 +53,17 @@ #define GNSS_SDR_PCPS_ACQUISITION_H_ #include "acq_conf.h" -#include "gnss_synchro.h" #include #include #include -#include +#include // for gr_complex +#include // for scoped_lock +#include // for gr_vector_const_void_star +#include // for lv_16sc_t +#include #include - +class Gnss_Synchro; class pcps_acquisition; using pcps_acquisition_sptr = boost::shared_ptr; diff --git a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_fpga.cc b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_fpga.cc index 52441f0ea..d54b572b9 100644 --- a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_fpga.cc +++ b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_fpga.cc @@ -33,9 +33,15 @@ #include "pcps_acquisition_fpga.h" +#include "gnss_synchro.h" #include #include -#include +#include // for from_long +#include // for mp +#include // for ceil +#include // for operator<< +#include // for move + #define AQ_DOWNSAMPLING_DELAY 40 // delay due to the downsampling filter in the acquisition @@ -133,7 +139,7 @@ void pcps_acquisition_fpga::set_state(int32_t state) void pcps_acquisition_fpga::send_positive_acquisition() { // Declare positive acquisition using a message port - //0=STOP_CHANNEL 1=ACQ_SUCCEES 2=ACQ_FAIL + // 0=STOP_CHANNEL 1=ACQ_SUCCEES 2=ACQ_FAIL DLOG(INFO) << "positive acquisition" << ", satellite " << d_gnss_synchro->System << " " << d_gnss_synchro->PRN << ", sample_stamp " << d_sample_counter diff --git a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_fpga.h b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_fpga.h index 58f23928f..ce78f6a47 100644 --- a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_fpga.h +++ b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_fpga.h @@ -42,8 +42,15 @@ #include "fpga_acquisition.h" -#include "gnss_synchro.h" -#include +#include +#include // for block +#include // for gr_vector_const_void_star +#include // for lv_16sc_t +#include // for uint32_t +#include // for shared_ptr +#include // for string + +class Gnss_Synchro; typedef struct { @@ -78,9 +85,7 @@ pcps_make_acquisition_fpga(pcpsconf_fpga_t conf_); class pcps_acquisition_fpga : public gr::block { private: - friend pcps_acquisition_fpga_sptr - - pcps_make_acquisition_fpga(pcpsconf_fpga_t conf_); + friend pcps_acquisition_fpga_sptr pcps_make_acquisition_fpga(pcpsconf_fpga_t conf_); pcps_acquisition_fpga(pcpsconf_fpga_t conf_); @@ -115,10 +120,10 @@ public: ~pcps_acquisition_fpga(); /*! - * \brief Set acquisition/tracking common Gnss_Synchro object pointer - * to exchange synchronization data between acquisition and tracking blocks. - * \param p_gnss_synchro Satellite information shared by the processing blocks. - */ + * \brief Set acquisition/tracking common Gnss_Synchro object pointer + * to exchange synchronization data between acquisition and tracking blocks. + * \param p_gnss_synchro Satellite information shared by the processing blocks. + */ inline void set_gnss_synchro(Gnss_Synchro* p_gnss_synchro) { d_gnss_synchro = p_gnss_synchro; @@ -133,53 +138,53 @@ public: } /*! - * \brief Initializes acquisition algorithm. - */ + * \brief Initializes acquisition algorithm. + */ void init(); /*! - * \brief Sets local code for PCPS acquisition algorithm. - * \param code - Pointer to the PRN code. - */ + * \brief Sets local code for PCPS acquisition algorithm. + * \param code - Pointer to the PRN code. + */ void set_local_code(); /*! - * \brief If set to 1, ensures that acquisition starts at the - * first available sample. - * \param state - int=1 forces start of acquisition - */ + * \brief If set to 1, ensures that acquisition starts at the + * first available sample. + * \param state - int=1 forces start of acquisition + */ void set_state(int32_t state); /*! - * \brief Starts acquisition algorithm, turning from standby mode to - * active mode - * \param active - bool that activates/deactivates the block. - */ + * \brief Starts acquisition algorithm, turning from standby mode to + * active mode + * \param active - bool that activates/deactivates the block. + */ void set_active(bool active); /*! - * \brief Set acquisition channel unique ID - * \param channel - receiver channel. - */ + * \brief Set acquisition channel unique ID + * \param channel - receiver channel. + */ inline void set_channel(uint32_t channel) { d_channel = channel; } /*! - * \brief Set statistics threshold of PCPS algorithm. - * \param threshold - Threshold for signal detection (check \ref Navitec2012, - * Algorithm 1, for a definition of this threshold). - */ + * \brief Set statistics threshold of PCPS algorithm. + * \param threshold - Threshold for signal detection (check \ref Navitec2012, + * Algorithm 1, for a definition of this threshold). + */ inline void set_threshold(float threshold) { d_threshold = threshold; } /*! - * \brief Set maximum Doppler grid search - * \param doppler_max - Maximum Doppler shift considered in the grid search [Hz]. - */ + * \brief Set maximum Doppler grid search + * \param doppler_max - Maximum Doppler shift considered in the grid search [Hz]. + */ inline void set_doppler_max(uint32_t doppler_max) { acq_parameters.doppler_max = doppler_max; @@ -187,22 +192,15 @@ public: } /*! - * \brief Set Doppler steps for the grid search - * \param doppler_step - Frequency bin of the search grid [Hz]. - */ + * \brief Set Doppler steps for the grid search + * \param doppler_step - Frequency bin of the search grid [Hz]. + */ inline void set_doppler_step(uint32_t doppler_step) { d_doppler_step = doppler_step; acquisition_fpga->set_doppler_step(doppler_step); } - /*! - * \brief Parallel Code Phase Search Acquisition signal processing. - */ - int general_work(int noutput_items, gr_vector_int& ninput_items, - gr_vector_const_void_star& input_items, - gr_vector_void_star& output_items); - /*! * \brief This funciton triggers a HW reset of the FPGA PL. */ @@ -212,6 +210,13 @@ public: * \brief This funciton is only used for the unit tests */ void read_fpga_total_scale_factor(uint32_t* total_scale_factor, uint32_t* fw_scale_factor); + + /*! + * \brief Parallel Code Phase Search Acquisition signal processing. + */ + int general_work(int noutput_items, gr_vector_int& ninput_items, + gr_vector_const_void_star& input_items, + gr_vector_void_star& output_items); }; #endif /* GNSS_SDR_PCPS_ACQUISITION_FPGA_H_*/ diff --git a/src/algorithms/acquisition/libs/CMakeLists.txt b/src/algorithms/acquisition/libs/CMakeLists.txt index 4b8eefec8..43a60629a 100644 --- a/src/algorithms/acquisition/libs/CMakeLists.txt +++ b/src/algorithms/acquisition/libs/CMakeLists.txt @@ -37,7 +37,6 @@ add_library(acquisition_libs target_link_libraries(acquisition_libs PUBLIC Volk::volk - Gnuradio::fft PRIVATE Gflags::gflags Glog::glog diff --git a/src/algorithms/acquisition/libs/fpga_acquisition.cc b/src/algorithms/acquisition/libs/fpga_acquisition.cc index e429e8c8e..d42c27833 100644 --- a/src/algorithms/acquisition/libs/fpga_acquisition.cc +++ b/src/algorithms/acquisition/libs/fpga_acquisition.cc @@ -1,16 +1,16 @@ /*! * \file fpga_acquisition.cc - * \brief High optimized FPGA vector correlator class + * \brief Highly optimized FPGA vector correlator class * \authors
    *
  • Marc Majoral, 2019. mmajoral(at)cttc.cat *
* - * Class that controls and executes a high optimized acquisition HW + * Class that controls and executes a highly optimized acquisition HW * accelerator in the FPGA * * ------------------------------------------------------------------------- * - * Copyright (C) 2010-2018 (see AUTHORS file for a list of contributors) + * Copyright (C) 2010-2019 (see AUTHORS file for a list of contributors) * * GNSS-SDR is a software defined Global Navigation * Satellite Systems receiver @@ -34,13 +34,14 @@ */ #include "fpga_acquisition.h" -#include "GPS_L1_CA.h" -#include "gps_sdr_signal_processing.h" -#include -#include // libraries used by the GIPO -#include -#include // libraries used by the GIPO -#include +#include "GPS_L1_CA.h" // for GPS_TWO_PI +#include // for LOG +#include // for log2 +#include // libraries used by the GIPO +#include // for operator<< +#include // libraries used by the GIPO +#include // for write, close, read, ssize_t +#include // for move // FPGA register parameters @@ -75,26 +76,6 @@ }) #endif -bool Fpga_Acquisition::init() -{ - return true; -} - - -bool Fpga_Acquisition::set_local_code(uint32_t PRN) -{ - // select the code with the chosen PRN - d_PRN = PRN; - return true; -} - - -void Fpga_Acquisition::write_local_code() -{ - Fpga_Acquisition::fpga_configure_acquisition_local_code( - &d_all_fft_codes[d_nsamples_total * (d_PRN - 1)]); -} - Fpga_Acquisition::Fpga_Acquisition(std::string device_name, uint32_t nsamples, @@ -132,6 +113,30 @@ Fpga_Acquisition::Fpga_Acquisition(std::string device_name, } +Fpga_Acquisition::~Fpga_Acquisition() = default; + + +bool Fpga_Acquisition::init() +{ + return true; +} + + +bool Fpga_Acquisition::set_local_code(uint32_t PRN) +{ + // select the code with the chosen PRN + d_PRN = PRN; + return true; +} + + +void Fpga_Acquisition::write_local_code() +{ + Fpga_Acquisition::fpga_configure_acquisition_local_code( + &d_all_fft_codes[d_nsamples_total * (d_PRN - 1)]); +} + + void Fpga_Acquisition::open_device() { // open communication with HW accelerator @@ -151,9 +156,6 @@ void Fpga_Acquisition::open_device() } -Fpga_Acquisition::~Fpga_Acquisition() = default; - - bool Fpga_Acquisition::free() { return true; diff --git a/src/algorithms/acquisition/libs/fpga_acquisition.h b/src/algorithms/acquisition/libs/fpga_acquisition.h index 2be464c97..b64e25e4d 100644 --- a/src/algorithms/acquisition/libs/fpga_acquisition.h +++ b/src/algorithms/acquisition/libs/fpga_acquisition.h @@ -1,11 +1,11 @@ /*! * \file fpga_acquisition.h - * \brief High optimized FPGA vector correlator class + * \brief Highly optimized FPGA vector correlator class * \authors
    *
  • Marc Majoral, 2019. mmajoral(at)cttc.cat *
* - * Class that controls and executes a high optimized acquisition HW + * Class that controls and executes a highly optimized acquisition HW * accelerator in the FPGA * * ------------------------------------------------------------------------- @@ -36,9 +36,9 @@ #ifndef GNSS_SDR_FPGA_ACQUISITION_H_ #define GNSS_SDR_FPGA_ACQUISITION_H_ -#include -#include +#include // for lv_16sc_t #include +#include /*! * \brief Class that implements carrier wipe-off and correlators. diff --git a/src/algorithms/libs/beidou_b1i_signal_processing.h b/src/algorithms/libs/beidou_b1i_signal_processing.h index 2e420eaae..e653dc3cf 100644 --- a/src/algorithms/libs/beidou_b1i_signal_processing.h +++ b/src/algorithms/libs/beidou_b1i_signal_processing.h @@ -35,7 +35,7 @@ #include #include -#include + //! Generates int32_t GPS L1 C/A code for the desired SV ID and code shift void beidou_b1i_code_gen_int(int32_t* _dest, int32_t _prn, uint32_t _chip_shift); diff --git a/src/algorithms/libs/gnss_sdr_fpga_sample_counter.cc b/src/algorithms/libs/gnss_sdr_fpga_sample_counter.cc index 777382909..95baf7a24 100644 --- a/src/algorithms/libs/gnss_sdr_fpga_sample_counter.cc +++ b/src/algorithms/libs/gnss_sdr_fpga_sample_counter.cc @@ -33,12 +33,13 @@ #include "gnss_synchro.h" #include #include -#include -#include -#include // libraries used by the GIPO -#include -#include -#include // libraries used by the GIPO +#include // for from_double +#include // for mp +#include // for round +#include // for O_RDWR, libraries used by the GIPO +#include // for operator<<, endl +#include // libraries used by the GIPO +#include // for write, close, read, ssize_t #define PAGE_SIZE 0x10000 // default page size for the multicorrelator memory map diff --git a/src/algorithms/libs/gnss_sdr_fpga_sample_counter.h b/src/algorithms/libs/gnss_sdr_fpga_sample_counter.h index dd508c33d..f30bb78c0 100644 --- a/src/algorithms/libs/gnss_sdr_fpga_sample_counter.h +++ b/src/algorithms/libs/gnss_sdr_fpga_sample_counter.h @@ -35,6 +35,7 @@ #include #include +#include // for gr_vector_const_void_star #include #include diff --git a/src/algorithms/libs/gnss_sdr_sample_counter.cc b/src/algorithms/libs/gnss_sdr_sample_counter.cc index e7d939582..954d5d674 100644 --- a/src/algorithms/libs/gnss_sdr_sample_counter.cc +++ b/src/algorithms/libs/gnss_sdr_sample_counter.cc @@ -32,9 +32,11 @@ #include "gnss_sdr_sample_counter.h" #include "gnss_synchro.h" #include -#include -#include -#include +#include // for from_double +#include // for mp +#include // for round +#include // for operator<< +#include // for string gnss_sdr_sample_counter::gnss_sdr_sample_counter( double _fs, diff --git a/src/algorithms/libs/gnss_sdr_sample_counter.h b/src/algorithms/libs/gnss_sdr_sample_counter.h index ed065b193..d1b215916 100644 --- a/src/algorithms/libs/gnss_sdr_sample_counter.h +++ b/src/algorithms/libs/gnss_sdr_sample_counter.h @@ -33,6 +33,8 @@ #include #include +#include // for gr_vector_const_void_star +#include // for size_t #include diff --git a/src/algorithms/libs/gnss_sdr_time_counter.cc b/src/algorithms/libs/gnss_sdr_time_counter.cc index 0cd06517b..2bf29fa77 100644 --- a/src/algorithms/libs/gnss_sdr_time_counter.cc +++ b/src/algorithms/libs/gnss_sdr_time_counter.cc @@ -32,7 +32,6 @@ #include "gnss_sdr_time_counter.h" #include "gnss_synchro.h" #include -#include #include #include diff --git a/src/algorithms/libs/gnss_sdr_time_counter.h b/src/algorithms/libs/gnss_sdr_time_counter.h index dcf7ca018..e52795573 100644 --- a/src/algorithms/libs/gnss_sdr_time_counter.h +++ b/src/algorithms/libs/gnss_sdr_time_counter.h @@ -33,6 +33,7 @@ #include #include +#include // for gr_vector_const_void_star #include class gnss_sdr_time_counter; diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/beidou_b1i_telemetry_decoder_gs.cc b/src/algorithms/telemetry_decoder/gnuradio_blocks/beidou_b1i_telemetry_decoder_gs.cc index 506a4ff5e..45a9f7667 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/beidou_b1i_telemetry_decoder_gs.cc +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/beidou_b1i_telemetry_decoder_gs.cc @@ -33,11 +33,9 @@ #include "beidou_b1i_telemetry_decoder_gs.h" #include "Beidou_B1I.h" -#include "beidou_dnav_almanac.h" #include "beidou_dnav_ephemeris.h" +#include "beidou_dnav_iono.h" #include "beidou_dnav_utc_model.h" -#include "convolutional.h" -#include "display.h" #include "gnss_synchro.h" #include #include @@ -321,8 +319,12 @@ void beidou_b1i_telemetry_decoder_gs::set_satellite(const Gnss_Satellite &satell volk_gnsssdr_free(d_secondary_code_symbols); volk_gnsssdr_free(d_subframe_symbols); + d_samples_per_symbol = (BEIDOU_B1I_CODE_RATE_HZ / BEIDOU_B1I_CODE_LENGTH_CHIPS) / BEIDOU_D2NAV_SYMBOL_RATE_SPS; + d_symbols_per_preamble = BEIDOU_DNAV_PREAMBLE_LENGTH_SYMBOLS; + d_samples_per_preamble = BEIDOU_DNAV_PREAMBLE_LENGTH_SYMBOLS * d_samples_per_symbol; d_secondary_code_symbols = nullptr; d_preamble_samples = static_cast(volk_gnsssdr_malloc(d_samples_per_preamble * sizeof(int32_t), volk_gnsssdr_get_alignment())); + d_preamble_period_samples = BEIDOU_DNAV_PREAMBLE_PERIOD_SYMBOLS * d_samples_per_symbol; // Setting samples of preamble code int32_t n = 0; diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_telemetry_decoder_gs.h b/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_telemetry_decoder_gs.h index 89988f8d6..3fbbabd68 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_telemetry_decoder_gs.h +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_telemetry_decoder_gs.h @@ -33,18 +33,11 @@ #define GNSS_SDR_GALILEO_TELEMETRY_DECODER_GS_H -//#include "Galileo_E1.h" -//#include "Galileo_E5a.h" -//#include "galileo_almanac_helper.h" -//#include "galileo_ephemeris.h" #include "galileo_fnav_message.h" #include // for boost::shared_ptr #include // for gr_vector_const_void_star -//#include "galileo_iono.h" #include "galileo_navigation_message.h" -//#include "galileo_utc_model.h" #include "gnss_satellite.h" -//#include "gnss_synchro.h" #include #include #include diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l1_ca_telemetry_decoder_gs.cc b/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l1_ca_telemetry_decoder_gs.cc index e12aa6b89..9125f12de 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l1_ca_telemetry_decoder_gs.cc +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l1_ca_telemetry_decoder_gs.cc @@ -30,7 +30,6 @@ */ #include "gps_l1_ca_telemetry_decoder_gs.h" -#include "gnss_synchro.h" #include "gps_ephemeris.h" // for Gps_Ephemeris #include "gps_iono.h" // for Gps_Iono #include "gps_utc_model.h" // for Gps_Utc_Model diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/sbas_l1_telemetry_decoder_gs.h b/src/algorithms/telemetry_decoder/gnuradio_blocks/sbas_l1_telemetry_decoder_gs.h index bf9742a91..35306340c 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/sbas_l1_telemetry_decoder_gs.h +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/sbas_l1_telemetry_decoder_gs.h @@ -32,11 +32,10 @@ #define GNSS_SDR_SBAS_L1_TELEMETRY_DECODER_GS_H #include "gnss_satellite.h" -#include +#include // for crc_optimal #include // for boost::shared_ptr #include #include // for gr_vector_const_void_star -#include // for copy #include // for size_t #include #include diff --git a/src/algorithms/tracking/adapters/CMakeLists.txt b/src/algorithms/tracking/adapters/CMakeLists.txt index 199abc7c7..8795eee51 100644 --- a/src/algorithms/tracking/adapters/CMakeLists.txt +++ b/src/algorithms/tracking/adapters/CMakeLists.txt @@ -98,6 +98,7 @@ target_link_libraries(tracking_adapters tracking_gr_blocks algorithms_libs gnss_sdr_flags + Gnuradio::runtime PRIVATE Volkgnsssdr::volkgnsssdr ) diff --git a/src/algorithms/tracking/adapters/galileo_e1_dll_pll_veml_tracking_fpga.cc b/src/algorithms/tracking/adapters/galileo_e1_dll_pll_veml_tracking_fpga.cc index b9f6cf626..531f64560 100644 --- a/src/algorithms/tracking/adapters/galileo_e1_dll_pll_veml_tracking_fpga.cc +++ b/src/algorithms/tracking/adapters/galileo_e1_dll_pll_veml_tracking_fpga.cc @@ -38,10 +38,15 @@ #include "Galileo_E1.h" #include "configuration_interface.h" #include "display.h" +#include "dll_pll_conf_fpga.h" #include "galileo_e1_signal_processing.h" #include "gnss_sdr_flags.h" +#include "gnss_synchro.h" #include #include +#include // for round +#include // for memcpy +#include // for operator<<, GalileoE1DllPllVemlTrackingFpga::GalileoE1DllPllVemlTrackingFpga( diff --git a/src/algorithms/tracking/adapters/galileo_e1_dll_pll_veml_tracking_fpga.h b/src/algorithms/tracking/adapters/galileo_e1_dll_pll_veml_tracking_fpga.h index 79cf7b6a4..cbc45c45b 100644 --- a/src/algorithms/tracking/adapters/galileo_e1_dll_pll_veml_tracking_fpga.h +++ b/src/algorithms/tracking/adapters/galileo_e1_dll_pll_veml_tracking_fpga.h @@ -39,9 +39,12 @@ #include "dll_pll_veml_tracking_fpga.h" #include "tracking_interface.h" +#include // for basic_block_sptr, top_block_... +#include // for size_t +#include #include - +class Gnss_Synchro; class ConfigurationInterface; /*! diff --git a/src/algorithms/tracking/adapters/galileo_e5a_dll_pll_tracking_fpga.cc b/src/algorithms/tracking/adapters/galileo_e5a_dll_pll_tracking_fpga.cc index b70ba9bd4..203e46357 100644 --- a/src/algorithms/tracking/adapters/galileo_e5a_dll_pll_tracking_fpga.cc +++ b/src/algorithms/tracking/adapters/galileo_e5a_dll_pll_tracking_fpga.cc @@ -33,10 +33,17 @@ #include "Galileo_E5a.h" #include "configuration_interface.h" #include "display.h" +#include "dll_pll_conf_fpga.h" #include "galileo_e5_signal_processing.h" #include "gnss_sdr_flags.h" +#include "gnss_synchro.h" #include +#include // for gr_complex #include +#include // for round +#include +#include // for memcpy +#include GalileoE5aDllPllTrackingFpga::GalileoE5aDllPllTrackingFpga( diff --git a/src/algorithms/tracking/adapters/galileo_e5a_dll_pll_tracking_fpga.h b/src/algorithms/tracking/adapters/galileo_e5a_dll_pll_tracking_fpga.h index e6d736269..195cafcf5 100644 --- a/src/algorithms/tracking/adapters/galileo_e5a_dll_pll_tracking_fpga.h +++ b/src/algorithms/tracking/adapters/galileo_e5a_dll_pll_tracking_fpga.h @@ -34,9 +34,12 @@ #include "dll_pll_veml_tracking_fpga.h" #include "tracking_interface.h" -#include +#include // for basic_block_sptr #include +#include // for size_t +#include +class Gnss_Synchro; class ConfigurationInterface; /*! diff --git a/src/algorithms/tracking/adapters/gps_l1_ca_dll_pll_tracking_fpga.cc b/src/algorithms/tracking/adapters/gps_l1_ca_dll_pll_tracking_fpga.cc index 9ff88bb64..bc0cfa72c 100644 --- a/src/algorithms/tracking/adapters/gps_l1_ca_dll_pll_tracking_fpga.cc +++ b/src/algorithms/tracking/adapters/gps_l1_ca_dll_pll_tracking_fpga.cc @@ -38,10 +38,15 @@ #include "GPS_L1_CA.h" #include "configuration_interface.h" #include "display.h" +#include "dll_pll_conf_fpga.h" #include "gnss_sdr_flags.h" +#include "gnss_synchro.h" #include "gps_sdr_signal_processing.h" #include #include +#include // for round +#include // for memcpy +#include #define NUM_PRNs 32 diff --git a/src/algorithms/tracking/adapters/gps_l1_ca_dll_pll_tracking_fpga.h b/src/algorithms/tracking/adapters/gps_l1_ca_dll_pll_tracking_fpga.h index b083495a5..680c903f2 100644 --- a/src/algorithms/tracking/adapters/gps_l1_ca_dll_pll_tracking_fpga.h +++ b/src/algorithms/tracking/adapters/gps_l1_ca_dll_pll_tracking_fpga.h @@ -39,9 +39,12 @@ #include "dll_pll_veml_tracking_fpga.h" #include "tracking_interface.h" +#include +#include #include +class Gnss_Synchro; class ConfigurationInterface; /*! diff --git a/src/algorithms/tracking/adapters/gps_l2_m_dll_pll_tracking_fpga.cc b/src/algorithms/tracking/adapters/gps_l2_m_dll_pll_tracking_fpga.cc index 88bb84253..8fd0fdaa2 100644 --- a/src/algorithms/tracking/adapters/gps_l2_m_dll_pll_tracking_fpga.cc +++ b/src/algorithms/tracking/adapters/gps_l2_m_dll_pll_tracking_fpga.cc @@ -39,10 +39,16 @@ #include "GPS_L2C.h" #include "configuration_interface.h" #include "display.h" +#include "dll_pll_conf_fpga.h" #include "gnss_sdr_flags.h" +#include "gnss_synchro.h" #include "gps_l2c_signal.h" #include #include +#include // for round +#include // for memcpy +#include + #define NUM_PRNs 32 diff --git a/src/algorithms/tracking/adapters/gps_l2_m_dll_pll_tracking_fpga.h b/src/algorithms/tracking/adapters/gps_l2_m_dll_pll_tracking_fpga.h index 77ab71f0d..7fbe24958 100644 --- a/src/algorithms/tracking/adapters/gps_l2_m_dll_pll_tracking_fpga.h +++ b/src/algorithms/tracking/adapters/gps_l2_m_dll_pll_tracking_fpga.h @@ -37,11 +37,13 @@ #ifndef GNSS_SDR_gps_l2_m_dll_pll_tracking_FPGA_H_ #define GNSS_SDR_gps_l2_m_dll_pll_tracking_FPGA_H_ -#include "tracking_interface.h" -//#include "dll_pll_veml_tracking.h" #include "dll_pll_veml_tracking_fpga.h" +#include "tracking_interface.h" +#include +#include #include +class Gnss_Synchro; class ConfigurationInterface; /*! diff --git a/src/algorithms/tracking/adapters/gps_l5_dll_pll_tracking_fpga.cc b/src/algorithms/tracking/adapters/gps_l5_dll_pll_tracking_fpga.cc index ed3ea37a0..41e86e726 100644 --- a/src/algorithms/tracking/adapters/gps_l5_dll_pll_tracking_fpga.cc +++ b/src/algorithms/tracking/adapters/gps_l5_dll_pll_tracking_fpga.cc @@ -40,10 +40,15 @@ #include "GPS_L5.h" #include "configuration_interface.h" #include "display.h" +#include "dll_pll_conf_fpga.h" #include "gnss_sdr_flags.h" +#include "gnss_synchro.h" #include "gps_l5_signal.h" #include #include +#include // for round +#include // for memcpy +#include #define NUM_PRNs 32 diff --git a/src/algorithms/tracking/adapters/gps_l5_dll_pll_tracking_fpga.h b/src/algorithms/tracking/adapters/gps_l5_dll_pll_tracking_fpga.h index 1d6060f2f..3e2f8024b 100644 --- a/src/algorithms/tracking/adapters/gps_l5_dll_pll_tracking_fpga.h +++ b/src/algorithms/tracking/adapters/gps_l5_dll_pll_tracking_fpga.h @@ -40,8 +40,12 @@ #include "dll_pll_veml_tracking_fpga.h" #include "tracking_interface.h" +#include +#include +#include #include +class Gnss_Synchro; class ConfigurationInterface; /*! diff --git a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.cc b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.cc index f86ebfe45..df7c6c867 100644 --- a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.cc +++ b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.cc @@ -45,6 +45,7 @@ #include "beidou_b1i_signal_processing.h" #include "galileo_e1_signal_processing.h" #include "galileo_e5_signal_processing.h" +#include "gnss_satellite.h" #include "gnss_sdr_create_directory.h" #include "gnss_synchro.h" #include "gps_l2c_signal.h" @@ -61,9 +62,11 @@ #include #include // for fill_n #include // for fmod, round, floor +#include // for complex +#include // for abs, size_t #include // for exception #include // for cout, cerr -#include +#include // for map dll_pll_veml_tracking_sptr dll_pll_veml_make_tracking(const Dll_Pll_Conf &conf_) diff --git a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.h b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.h index c1c9d6532..c1d197da9 100644 --- a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.h +++ b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.h @@ -44,8 +44,10 @@ #include // for pmt_t #include // for int32_t #include // for string, ofstream +#include // for string #include // for pair + class Gnss_Synchro; class dll_pll_veml_tracking; diff --git a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking_fpga.cc b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking_fpga.cc index 7715e2f8c..1cc9e7bdf 100644 --- a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking_fpga.cc +++ b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking_fpga.cc @@ -41,25 +41,25 @@ #include "Galileo_E1.h" #include "Galileo_E5a.h" #include "MATH_CONSTANTS.h" -#include "galileo_e1_signal_processing.h" -#include "galileo_e5_signal_processing.h" +#include "fpga_multicorrelator.h" +#include "gnss_satellite.h" #include "gnss_sdr_create_directory.h" -#include "gps_l2c_signal.h" -#include "gps_l5_signal.h" -#include "gps_sdr_signal_processing.h" +#include "gnss_synchro.h" #include "lock_detectors.h" #include "tracking_discriminators.h" #include #include #include #include +#include // for mp #include #include #include +#include +#include // for abs, size_t #include #include -#include -#include +#include dll_pll_veml_tracking_fpga_sptr dll_pll_veml_make_tracking_fpga(const Dll_Pll_Conf_Fpga &conf_) diff --git a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking_fpga.h b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking_fpga.h index 227939ded..681573639 100644 --- a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking_fpga.h +++ b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking_fpga.h @@ -33,18 +33,23 @@ #define GNSS_SDR_DLL_PLL_VEML_TRACKING_FPGA_H #include "dll_pll_conf_fpga.h" -#include "fpga_multicorrelator.h" -#include "gnss_synchro.h" #include "tracking_2nd_DLL_filter.h" #include "tracking_2nd_PLL_filter.h" #include +#include #include -#include -#include -#include +#include // for gr_complex +#include // for gr_vector_const_void_star +#include // for pmt_t +#include +#include // for deque +#include // for ofstream +#include // for shared_ptr +#include #include -//#include +class Fpga_Multicorrelator_8sc; +class Gnss_Synchro; class dll_pll_veml_tracking_fpga; using dll_pll_veml_tracking_fpga_sptr = boost::shared_ptr; diff --git a/src/tests/unit-tests/signal-processing-blocks/pvt/nmea_printer_test.cc b/src/tests/unit-tests/signal-processing-blocks/pvt/nmea_printer_test.cc index 1d7580b96..771c0a8ea 100644 --- a/src/tests/unit-tests/signal-processing-blocks/pvt/nmea_printer_test.cc +++ b/src/tests/unit-tests/signal-processing-blocks/pvt/nmea_printer_test.cc @@ -31,6 +31,7 @@ #include "nmea_printer.h" #include "rtklib_rtkpos.h" +#include "rtklib_solver.h" #include #include #include diff --git a/src/utils/front-end-cal/front_end_cal.cc b/src/utils/front-end-cal/front_end_cal.cc index 781576efd..4940f6082 100644 --- a/src/utils/front-end-cal/front_end_cal.cc +++ b/src/utils/front-end-cal/front_end_cal.cc @@ -30,20 +30,21 @@ */ #include "front_end_cal.h" +#include "GPS_L1_CA.h" // for GPS_L1_FREQ_HZ #include "concurrent_map.h" +#include "configuration_interface.h" #include "gnss_sdr_supl_client.h" +#include "gps_acq_assist.h" // for Gps_Acq_Assist #include "gps_almanac.h" -#include "gps_cnav_ephemeris.h" -#include "gps_cnav_iono.h" #include "gps_ephemeris.h" #include "gps_iono.h" -#include "gps_navigation_message.h" #include "gps_utc_model.h" #include #include +#include // for min #include -#include -#include +#include // for operator<< +#include #include extern Concurrent_Map global_gps_ephemeris_map; diff --git a/src/utils/front-end-cal/front_end_cal.h b/src/utils/front-end-cal/front_end_cal.h index 551377ebd..6bb495c4c 100644 --- a/src/utils/front-end-cal/front_end_cal.h +++ b/src/utils/front-end-cal/front_end_cal.h @@ -32,9 +32,11 @@ #ifndef GNSS_SDR_FRONT_END_CAL_H_ #define GNSS_SDR_FRONT_END_CAL_H_ -#include "file_configuration.h" #include +#include +#include +class ConfigurationInterface; class FrontEndCal { diff --git a/src/utils/front-end-cal/main.cc b/src/utils/front-end-cal/main.cc index b0dc512a5..989ba2348 100644 --- a/src/utils/front-end-cal/main.cc +++ b/src/utils/front-end-cal/main.cc @@ -32,51 +32,57 @@ #define FRONT_END_CAL_VERSION "0.0.1" #endif +#include "GPS_L1_CA.h" // for GPS_L1_CA_COD... #include "concurrent_map.h" #include "concurrent_queue.h" +#include "configuration_interface.h" // for Configuration... #include "file_configuration.h" #include "front_end_cal.h" -#include "galileo_almanac.h" -#include "galileo_ephemeris.h" -#include "galileo_iono.h" -#include "galileo_utc_model.h" #include "gnss_block_factory.h" +#include "gnss_block_interface.h" // for GNSSBlockInte... #include "gnss_sdr_flags.h" -#include "gnss_sdr_supl_client.h" -#include "gnss_signal.h" #include "gnss_synchro.h" +#include "gps_acq_assist.h" // for Gps_Acq_Assist #include "gps_almanac.h" -#include "gps_cnav_ephemeris.h" -#include "gps_cnav_iono.h" #include "gps_ephemeris.h" #include "gps_iono.h" #include "gps_l1_ca_pcps_acquisition_fine_doppler.h" -#include "gps_navigation_message.h" #include "gps_utc_model.h" -#include "sbas_ephemeris.h" -#include +#include // for bad_any_cast +#include +#include #include #include +#include #include +#include // for block #include #include #include #include #include +#include // for gr_complex +#include // for io_signature #include +#include // for block_sptr #include +#include // for pmt_t, to_long +#include // for mp #include +#include // for round #include #include #include // for ctime #include +#include +#include #include -#include +#include // for logic_error +#include #include #include #include - DECLARE_string(log_dir); Concurrent_Map global_gps_ephemeris_map; diff --git a/src/utils/matlab/hybrid_observables_plot_sample.m b/src/utils/matlab/hybrid_observables_plot_sample.m index 9105c5bbd..2a8a784e5 100644 --- a/src/utils/matlab/hybrid_observables_plot_sample.m +++ b/src/utils/matlab/hybrid_observables_plot_sample.m @@ -29,10 +29,10 @@ clearvars; close all; addpath('./libs'); -samplingFreq = 6625000; %[Hz] -channels=5; -path='/archive/'; -observables_log_path=[path 'glo_observables.dat']; +samplingFreq = 25000000; %[Hz] +channels=10; +path='/home/dmiralles/Documents/gnss-sdr/'; +observables_log_path=[path 'observables.dat']; GNSS_observables= read_hybrid_observables_dump(channels,observables_log_path); %%