From c82c7225dd3381e991fb49eb3a30f77a1eebbdb4 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Tue, 5 Mar 2019 08:59:04 +0100 Subject: [PATCH] Improve includes with the aid of include-what-you-use (IWYU) See rationale at https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/WhyIWYU.md --- src/algorithms/PVT/adapters/rtklib_pvt.cc | 16 ++++-- src/algorithms/PVT/adapters/rtklib_pvt.h | 23 ++++---- .../PVT/gnuradio_blocks/CMakeLists.txt | 1 + .../PVT/gnuradio_blocks/rtklib_pvt_gs.cc | 29 ++++++++-- .../PVT/gnuradio_blocks/rtklib_pvt_gs.h | 57 ++++++++++--------- src/algorithms/libs/pass_through.cc | 6 +- src/algorithms/libs/pass_through.h | 3 +- src/algorithms/libs/rtklib/CMakeLists.txt | 3 +- .../libs/rtklib/rtklib_conversions.cc | 13 +++++ .../libs/rtklib/rtklib_conversions.h | 19 ++++--- .../adapters/hybrid_observables.cc | 3 +- .../observables/adapters/hybrid_observables.h | 3 + .../gnuradio_blocks/CMakeLists.txt | 4 +- .../gnuradio_blocks/hybrid_observables_gs.cc | 21 +++---- .../gnuradio_blocks/hybrid_observables_gs.h | 23 ++++---- .../signal_source/libs/gnss_sdr_valve.cc | 11 ++-- .../signal_source/libs/gnss_sdr_valve.h | 6 +- .../signal_source/libs/rtl_tcp_commands.cc | 4 +- .../signal_source/libs/rtl_tcp_commands.h | 3 +- .../adapters/beidou_b1i_telemetry_decoder.cc | 1 - .../adapters/beidou_b1i_telemetry_decoder.h | 3 + .../adapters/galileo_e1b_telemetry_decoder.cc | 1 - .../adapters/galileo_e1b_telemetry_decoder.h | 2 + .../adapters/galileo_e5a_telemetry_decoder.cc | 1 - .../adapters/galileo_e5a_telemetry_decoder.h | 3 + .../glonass_l1_ca_telemetry_decoder.cc | 1 - .../glonass_l1_ca_telemetry_decoder.h | 3 + .../glonass_l2_ca_telemetry_decoder.cc | 1 - .../glonass_l2_ca_telemetry_decoder.h | 3 + .../adapters/gps_l1_ca_telemetry_decoder.cc | 1 - .../adapters/gps_l1_ca_telemetry_decoder.h | 3 + .../adapters/gps_l2c_telemetry_decoder.cc | 1 - .../adapters/gps_l2c_telemetry_decoder.h | 3 + .../adapters/gps_l5_telemetry_decoder.cc | 1 - .../adapters/gps_l5_telemetry_decoder.h | 2 + .../adapters/sbas_l1_telemetry_decoder.cc | 2 - .../adapters/sbas_l1_telemetry_decoder.h | 3 + .../beidou_b1i_telemetry_decoder_gs.cc | 1 - .../galileo_telemetry_decoder_gs.cc | 1 - .../glonass_l1_ca_telemetry_decoder_gs.cc | 1 - .../glonass_l2_ca_telemetry_decoder_gs.cc | 1 - .../gps_l1_ca_telemetry_decoder_gs.cc | 1 - .../gps_l2c_telemetry_decoder_gs.cc | 1 - .../gps_l5_telemetry_decoder_gs.cc | 1 - .../sbas_l1_telemetry_decoder_gs.cc | 1 - .../telemetry_decoder/libs/viterbi_decoder.cc | 2 + .../gnuradio_blocks/dll_pll_veml_tracking.cc | 18 +++--- .../gnuradio_blocks/dll_pll_veml_tracking.h | 16 +++--- src/core/receiver/CMakeLists.txt | 1 + src/core/receiver/control_message_factory.cc | 3 +- src/core/receiver/control_thread.cc | 52 ++++++++++------- src/core/receiver/control_thread.h | 30 +++++----- src/core/receiver/gnss_block_factory.cc | 13 ++--- src/core/receiver/gnss_block_factory.h | 9 +-- src/core/receiver/gnss_flowgraph.cc | 32 +++++++---- src/core/receiver/gnss_flowgraph.h | 30 +++++----- .../system_parameters/agnss_ref_location.h | 1 - src/core/system_parameters/agnss_ref_time.h | 1 - .../system_parameters/beidou_dnav_almanac.h | 1 - .../beidou_dnav_navigation_message.cc | 9 +-- .../beidou_dnav_navigation_message.h | 36 +++++------- .../system_parameters/galileo_fnav_message.cc | 5 +- src/core/system_parameters/galileo_iono.h | 1 + .../galileo_navigation_message.h | 1 - .../glonass_gnav_ephemeris.cc | 3 +- .../glonass_gnav_ephemeris.h | 2 +- .../glonass_gnav_navigation_message.cc | 3 + .../glonass_gnav_navigation_message.h | 3 + src/core/system_parameters/gnss_satellite.h | 1 + .../system_parameters/gps_cnav_ephemeris.cc | 2 + .../system_parameters/gps_cnav_ephemeris.h | 3 +- src/core/system_parameters/gps_cnav_iono.h | 1 - .../system_parameters/gps_cnav_utc_model.h | 1 - src/core/system_parameters/gps_ephemeris.h | 1 - src/core/system_parameters/gps_iono.h | 1 - .../gps_navigation_message.h | 1 - src/main/CMakeLists.txt | 1 - src/main/main.cc | 26 ++++----- 78 files changed, 343 insertions(+), 258 deletions(-) diff --git a/src/algorithms/PVT/adapters/rtklib_pvt.cc b/src/algorithms/PVT/adapters/rtklib_pvt.cc index 3c6370177..7a6ae02ce 100644 --- a/src/algorithms/PVT/adapters/rtklib_pvt.cc +++ b/src/algorithms/PVT/adapters/rtklib_pvt.cc @@ -30,11 +30,17 @@ #include "rtklib_pvt.h" -#include "configuration_interface.h" -#include "gnss_sdr_flags.h" -#include "pvt_conf.h" -#include "rtklib_rtkpos.h" -#include +#include "MATH_CONSTANTS.h" // for D2R +#include "configuration_interface.h" // for ConfigurationInterface +#include "galileo_almanac.h" // for Galileo_Almanac +#include "galileo_ephemeris.h" // for Galileo_Ephemeris +#include "gnss_sdr_flags.h" // for FLAGS_RINEX_version +#include "gps_almanac.h" // for Gps_Almanac +#include "gps_ephemeris.h" // for Gps_Ephemeris +#include "pvt_conf.h" // for Pvt_Conf +#include "rtklib_rtkpos.h" // for rtkfree, rtkinit +#include // for LOG +#include // for operator<< #if OLD_BOOST #include namespace bc = boost::math; diff --git a/src/algorithms/PVT/adapters/rtklib_pvt.h b/src/algorithms/PVT/adapters/rtklib_pvt.h index fd3fe7737..b61e25604 100644 --- a/src/algorithms/PVT/adapters/rtklib_pvt.h +++ b/src/algorithms/PVT/adapters/rtklib_pvt.h @@ -32,18 +32,21 @@ #ifndef GNSS_SDR_RTKLIB_PVT_H_ #define GNSS_SDR_RTKLIB_PVT_H_ -#include "galileo_almanac.h" -#include "galileo_ephemeris.h" -#include "gps_almanac.h" -#include "gps_ephemeris.h" -#include "pvt_interface.h" -#include "rtklib.h" -#include "rtklib_pvt_gs.h" -#include -#include - +#include "pvt_interface.h" // for PvtInterface +#include "rtklib.h" // for rtk_t +#include "rtklib_pvt_gs.h" // for rtklib_pvt_gs_sptr +#include // for gr_complex +#include // for basic_block_sptr, top_block_sptr +#include // for size_t +#include // for time_t +#include // for map +#include // for string class ConfigurationInterface; +class Galileo_Almanac; +class Galileo_Ephemeris; +class Gps_Almanac; +class Gps_Ephemeris; /*! * \brief This class implements a PvtInterface for the RTKLIB PVT block diff --git a/src/algorithms/PVT/gnuradio_blocks/CMakeLists.txt b/src/algorithms/PVT/gnuradio_blocks/CMakeLists.txt index d6ec638a5..485fc9711 100644 --- a/src/algorithms/PVT/gnuradio_blocks/CMakeLists.txt +++ b/src/algorithms/PVT/gnuradio_blocks/CMakeLists.txt @@ -30,6 +30,7 @@ add_library(pvt_gr_blocks ${PVT_GR_BLOCKS_SOURCES} ${PVT_GR_BLOCKS_HEADERS}) target_link_libraries(pvt_gr_blocks PUBLIC + algorithms_libs_rtklib pvt_libs core_system_parameters Boost::date_time diff --git a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc index c7b622f68..352cbe316 100644 --- a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc +++ b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc @@ -29,23 +29,43 @@ */ #include "rtklib_pvt_gs.h" +#include "beidou_dnav_almanac.h" +#include "beidou_dnav_ephemeris.h" #include "display.h" +#include "galileo_almanac.h" #include "galileo_almanac_helper.h" +#include "galileo_ephemeris.h" +#include "geojson_printer.h" #include "gnss_sdr_create_directory.h" +#include "gps_almanac.h" +#include "gps_ephemeris.h" +#include "gpx_printer.h" +#include "kml_printer.h" +#include "monitor_pvt_udp_sink.h" +#include "nmea_printer.h" #include "pvt_conf.h" +#include "rinex_printer.h" +#include "rtcm_printer.h" +#include "rtklib_solver.h" +#include // for any_cast, any #include #include -#include +#include // for bind_t, bind +#include +#include #include #include -#include -#include -#include +#include // for nvp, make_nvp +#include // for LOG +#include // for io_signature +#include // for mp #include #include #include #include #include +#include // for IPC_CREAT +#include // for msgctl #if OLD_BOOST #include namespace bc = boost::math; @@ -149,7 +169,6 @@ rtklib_pvt_gs::rtklib_pvt_gs(uint32_t nchannels, // initialize geojson_printer std::string geojson_dump_filename; geojson_dump_filename = d_dump_filename; - d_geojson_output_enabled = conf_.geojson_output_enabled; if (d_geojson_output_enabled) { diff --git a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.h b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.h index 30503ce01..4e3df2672 100644 --- a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.h +++ b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.h @@ -31,38 +31,39 @@ #ifndef GNSS_SDR_RTKLIB_PVT_GS_H #define GNSS_SDR_RTKLIB_PVT_GS_H -#include "beidou_dnav_almanac.h" -#include "beidou_dnav_ephemeris.h" -#include "galileo_almanac.h" -#include "galileo_ephemeris.h" -#include "geojson_printer.h" #include "gnss_synchro.h" -#include "gps_almanac.h" -#include "gps_ephemeris.h" -#include "gpx_printer.h" -#include "kml_printer.h" -#include "monitor_pvt_udp_sink.h" -#include "nmea_printer.h" -#include "pvt_conf.h" -#include "rinex_printer.h" -#include "rtcm_printer.h" -#include "rtklib_solver.h" +#include "rtklib.h" #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - +#include // for boost::shared_ptr +#include // for sync_block +#include // for gr_vector_const_void_star +#include // for pmt_t +#include // for system_clock +#include // for int32_t +#include // for time_t +#include // for map +#include // for shared_ptr, unique_ptr +#include // for string +#include // for key_t +#include // for pair +#include // for vector +class Beidou_Dnav_Almanac; +class Beidou_Dnav_Ephemeris; +class Galileo_Almanac; +class Galileo_Ephemeris; +class GeoJSON_Printer; +class Gps_Almanac; +class Gps_Ephemeris; +class Gpx_Printer; +class Kml_Printer; +class Monitor_Pvt_Udp_Sink; +class Nmea_Printer; +class Pvt_Conf; +class Rinex_Printer; +class Rtcm_Printer; +class Rtklib_Solver; class rtklib_pvt_gs; using rtklib_pvt_gs_sptr = boost::shared_ptr; diff --git a/src/algorithms/libs/pass_through.cc b/src/algorithms/libs/pass_through.cc index 2cb98fef8..a64ecba18 100644 --- a/src/algorithms/libs/pass_through.cc +++ b/src/algorithms/libs/pass_through.cc @@ -33,9 +33,9 @@ #include "pass_through.h" #include "configuration_interface.h" #include -#include -#include - +#include +#include +#include // for operator<< Pass_Through::Pass_Through(ConfigurationInterface* configuration, const std::string& role, unsigned int in_streams, diff --git a/src/algorithms/libs/pass_through.h b/src/algorithms/libs/pass_through.h index 7ef1838bf..ec8046862 100644 --- a/src/algorithms/libs/pass_through.h +++ b/src/algorithms/libs/pass_through.h @@ -38,7 +38,8 @@ #include "conjugate_sc.h" #include "gnss_block_interface.h" #include -#include +#include +#include #include diff --git a/src/algorithms/libs/rtklib/CMakeLists.txt b/src/algorithms/libs/rtklib/CMakeLists.txt index 6a85ff21b..f15c1c074 100644 --- a/src/algorithms/libs/rtklib/CMakeLists.txt +++ b/src/algorithms/libs/rtklib/CMakeLists.txt @@ -66,9 +66,8 @@ source_group(Headers FILES ${RTKLIB_LIB_HEADERS}) add_library(algorithms_libs_rtklib ${RTKLIB_LIB_SOURCES} ${RTKLIB_LIB_HEADERS}) target_link_libraries(algorithms_libs_rtklib - PUBLIC - core_system_parameters PRIVATE + core_system_parameters Gflags::gflags Glog::glog ) diff --git a/src/algorithms/libs/rtklib/rtklib_conversions.cc b/src/algorithms/libs/rtklib/rtklib_conversions.cc index 6008fdfd4..280d81ebe 100644 --- a/src/algorithms/libs/rtklib/rtklib_conversions.cc +++ b/src/algorithms/libs/rtklib/rtklib_conversions.cc @@ -29,7 +29,20 @@ */ #include "rtklib_conversions.h" +#include "MATH_CONSTANTS.h" // for PI, PI_2 +#include "beidou_dnav_ephemeris.h" // for Beidou_Dnav_Ephemeris +#include "galileo_almanac.h" // for Galileo_Almanac +#include "galileo_ephemeris.h" // for Galileo_Ephemeris +#include "glonass_gnav_ephemeris.h" // for Glonass_Gnav_Ephemeris +#include "glonass_gnav_utc_model.h" // for Glonass_Gnav_Utc_Model +#include "gnss_obs_codes.h" // for CODE_L1C, CODE_L2S, CODE_L5X +#include "gnss_synchro.h" // for Gnss_Synchro +#include "gps_almanac.h" // for Gps_Almanac +#include "gps_cnav_ephemeris.h" // for Gps_CNAV_Ephemeris +#include "gps_ephemeris.h" // for Gps_Ephemeris #include "rtklib_rtkcmn.h" +#include +#include obsd_t insert_obs_to_rtklib(obsd_t& rtklib_obs, const Gnss_Synchro& gnss_synchro, int week, int band) { diff --git a/src/algorithms/libs/rtklib/rtklib_conversions.h b/src/algorithms/libs/rtklib/rtklib_conversions.h index de2b7baaf..a46d90c5f 100644 --- a/src/algorithms/libs/rtklib/rtklib_conversions.h +++ b/src/algorithms/libs/rtklib/rtklib_conversions.h @@ -31,17 +31,18 @@ #ifndef GNSS_SDR_RTKLIB_CONVERSIONS_H_ #define GNSS_SDR_RTKLIB_CONVERSIONS_H_ -#include "beidou_dnav_ephemeris.h" -#include "galileo_almanac.h" -#include "galileo_ephemeris.h" -#include "glonass_gnav_ephemeris.h" -#include "glonass_gnav_utc_model.h" -#include "gnss_synchro.h" -#include "gps_almanac.h" -#include "gps_cnav_ephemeris.h" -#include "gps_ephemeris.h" #include "rtklib.h" +class Beidou_Dnav_Ephemeris; +class Galileo_Almanac; +class Galileo_Ephemeris; +class Glonass_Gnav_Ephemeris; +class Glonass_Gnav_Utc_Model; +class Gnss_Synchro; +class Gps_Almanac; +class Gps_CNAV_Ephemeris; +class Gps_Ephemeris; + eph_t eph_to_rtklib(const Galileo_Ephemeris& gal_eph); eph_t eph_to_rtklib(const Gps_Ephemeris& gps_eph); eph_t eph_to_rtklib(const Gps_CNAV_Ephemeris& gps_cnav_eph); diff --git a/src/algorithms/observables/adapters/hybrid_observables.cc b/src/algorithms/observables/adapters/hybrid_observables.cc index cfb0f9cb6..e038e47ff 100644 --- a/src/algorithms/observables/adapters/hybrid_observables.cc +++ b/src/algorithms/observables/adapters/hybrid_observables.cc @@ -33,6 +33,7 @@ #include "hybrid_observables.h" #include "configuration_interface.h" #include +#include // for operator<< HybridObservables::HybridObservables(ConfigurationInterface* configuration, @@ -44,7 +45,7 @@ HybridObservables::HybridObservables(ConfigurationInterface* configuration, dump_mat_ = configuration->property(role + ".dump_mat", true); dump_filename_ = configuration->property(role + ".dump_filename", default_dump_filename); - observables_ = hybrid_make_observables_gs(in_streams_, out_streams_, dump_, dump_mat_, dump_filename_); + observables_ = hybrid_observables_gs_make(in_streams_, out_streams_, dump_, dump_mat_, dump_filename_); DLOG(INFO) << "Observables block ID (" << observables_->unique_id() << ")"; } diff --git a/src/algorithms/observables/adapters/hybrid_observables.h b/src/algorithms/observables/adapters/hybrid_observables.h index dcc1bc006..7e2d6c674 100644 --- a/src/algorithms/observables/adapters/hybrid_observables.h +++ b/src/algorithms/observables/adapters/hybrid_observables.h @@ -36,6 +36,9 @@ #include "hybrid_observables_gs.h" #include "observables_interface.h" +#include // for gr_complex +#include // for basic_block_sptr, top_block_sptr +#include #include class ConfigurationInterface; diff --git a/src/algorithms/observables/gnuradio_blocks/CMakeLists.txt b/src/algorithms/observables/gnuradio_blocks/CMakeLists.txt index 34a2f3c0d..90bc7236b 100644 --- a/src/algorithms/observables/gnuradio_blocks/CMakeLists.txt +++ b/src/algorithms/observables/gnuradio_blocks/CMakeLists.txt @@ -37,13 +37,13 @@ target_link_libraries(obs_gr_blocks PUBLIC Boost::boost Gnuradio::blocks - core_system_parameters PRIVATE + algorithms_libs + core_system_parameters Gflags::gflags Glog::glog Boost::filesystem Matio::matio - algorithms_libs ) if(ENABLE_CLANG_TIDY) diff --git a/src/algorithms/observables/gnuradio_blocks/hybrid_observables_gs.cc b/src/algorithms/observables/gnuradio_blocks/hybrid_observables_gs.cc index 52610e20a..93564f34a 100644 --- a/src/algorithms/observables/gnuradio_blocks/hybrid_observables_gs.cc +++ b/src/algorithms/observables/gnuradio_blocks/hybrid_observables_gs.cc @@ -30,23 +30,24 @@ */ #include "hybrid_observables_gs.h" -#include "GPS_L1_CA.h" -#include "display.h" +#include "GPS_L1_CA.h" // for GPS_STARTOFFSET_MS, GPS_TWO_PI +#include "MATH_CONSTANTS.h" // for SPEED_OF_LIGHT +#include "gnss_circular_deque.h" #include "gnss_sdr_create_directory.h" +#include "gnss_synchro.h" #include #include #include #include -#include -#include -#include -#include -#include -#include -#include +#include // for round +#include // for size_t, llabs +#include // for exception +#include // for cerr, cout +#include // for numeric_limits +#include // for move -hybrid_observables_gs_sptr hybrid_make_observables_gs(unsigned int nchannels_in, unsigned int nchannels_out, bool dump, bool dump_mat, std::string dump_filename) +hybrid_observables_gs_sptr hybrid_observables_gs_make(unsigned int nchannels_in, unsigned int nchannels_out, bool dump, bool dump_mat, std::string dump_filename) { return hybrid_observables_gs_sptr(new hybrid_observables_gs(nchannels_in, nchannels_out, dump, dump_mat, std::move(dump_filename))); } diff --git a/src/algorithms/observables/gnuradio_blocks/hybrid_observables_gs.h b/src/algorithms/observables/gnuradio_blocks/hybrid_observables_gs.h index 5a31674a7..170396761 100644 --- a/src/algorithms/observables/gnuradio_blocks/hybrid_observables_gs.h +++ b/src/algorithms/observables/gnuradio_blocks/hybrid_observables_gs.h @@ -34,21 +34,24 @@ #ifndef GNSS_SDR_HYBRID_OBSERVABLES_GS_H #define GNSS_SDR_HYBRID_OBSERVABLES_GS_H -#include "gnss_circular_deque.h" -#include "gnss_synchro.h" -#include -#include -#include -#include -#include - +#include // for boost::curcular_buffer +#include // for boost::shared_ptr +#include // for block +#include // for gr_vector_int +#include // for int32_t +#include // for string, ofstream +#include // for vector +class Gnss_Synchro; class hybrid_observables_gs; +template +class Gnss_circular_deque; + using hybrid_observables_gs_sptr = boost::shared_ptr; hybrid_observables_gs_sptr -hybrid_make_observables_gs(unsigned int nchannels_in, unsigned int nchannels_out, bool dump, bool dump_mat, std::string dump_filename); +hybrid_observables_gs_make(unsigned int nchannels_in, unsigned int nchannels_out, bool dump, bool dump_mat, std::string dump_filename); /*! * \brief This class implements a block that computes observables @@ -63,7 +66,7 @@ public: private: friend hybrid_observables_gs_sptr - hybrid_make_observables_gs(uint32_t nchannels_in, uint32_t nchannels_out, bool dump, bool dump_mat, std::string dump_filename); + hybrid_observables_gs_make(uint32_t nchannels_in, uint32_t nchannels_out, bool dump, bool dump_mat, std::string dump_filename); hybrid_observables_gs(uint32_t nchannels_in, uint32_t nchannels_out, bool dump, bool dump_mat, std::string dump_filename); bool interpolate_data(Gnss_Synchro& out, const uint32_t& ch, const double& ti); bool interp_trk_obs(Gnss_Synchro& interpolated_obs, const uint32_t& ch, const uint64_t& rx_clock); diff --git a/src/algorithms/signal_source/libs/gnss_sdr_valve.cc b/src/algorithms/signal_source/libs/gnss_sdr_valve.cc index 5e0d6f4cd..19626a5d4 100644 --- a/src/algorithms/signal_source/libs/gnss_sdr_valve.cc +++ b/src/algorithms/signal_source/libs/gnss_sdr_valve.cc @@ -32,11 +32,12 @@ */ #include "gnss_sdr_valve.h" -#include "control_message_factory.h" -#include -#include -#include // for min -#include // for memcpy +#include "control_message_factory.h" // for ControlMessageFactory +#include // for LOG +#include // for io_signature +#include // for min +#include // for memcpy +#include // for usleep #include Gnss_Sdr_Valve::Gnss_Sdr_Valve(size_t sizeof_stream_item, diff --git a/src/algorithms/signal_source/libs/gnss_sdr_valve.h b/src/algorithms/signal_source/libs/gnss_sdr_valve.h index 16a141cd4..76ddc9cd6 100644 --- a/src/algorithms/signal_source/libs/gnss_sdr_valve.h +++ b/src/algorithms/signal_source/libs/gnss_sdr_valve.h @@ -35,8 +35,10 @@ #define GNSS_SDR_GNSS_SDR_VALVE_H_ #include -#include -#include +#include // for msg_queue, msg_queue::sptr +#include // for sync_block +#include // for gr_vector_const_void_star +#include // for size_t #include boost::shared_ptr gnss_sdr_make_valve(size_t sizeof_stream_item, diff --git a/src/algorithms/signal_source/libs/rtl_tcp_commands.cc b/src/algorithms/signal_source/libs/rtl_tcp_commands.cc index 45bb25a9f..31466e612 100644 --- a/src/algorithms/signal_source/libs/rtl_tcp_commands.cc +++ b/src/algorithms/signal_source/libs/rtl_tcp_commands.cc @@ -31,7 +31,9 @@ */ #include "rtl_tcp_commands.h" -#include +#include // for buffer +#include // for host_to_network_long +#include // for memcpy boost::system::error_code rtl_tcp_command(RTL_TCP_COMMAND id, unsigned param, boost::asio::ip::tcp::socket &socket) { diff --git a/src/algorithms/signal_source/libs/rtl_tcp_commands.h b/src/algorithms/signal_source/libs/rtl_tcp_commands.h index 8dab2a0c8..0c5a694e1 100644 --- a/src/algorithms/signal_source/libs/rtl_tcp_commands.h +++ b/src/algorithms/signal_source/libs/rtl_tcp_commands.h @@ -32,7 +32,8 @@ #ifndef GNSS_SDR_RTL_TCP_COMMANDS_H #define GNSS_SDR_RTL_TCP_COMMANDS_H -#include +#include // for tcp, tcp::socket +#include // for error_code /// Command IDs for configuration rtl_tcp enum RTL_TCP_COMMAND diff --git a/src/algorithms/telemetry_decoder/adapters/beidou_b1i_telemetry_decoder.cc b/src/algorithms/telemetry_decoder/adapters/beidou_b1i_telemetry_decoder.cc index d7ba2697b..2daf11435 100644 --- a/src/algorithms/telemetry_decoder/adapters/beidou_b1i_telemetry_decoder.cc +++ b/src/algorithms/telemetry_decoder/adapters/beidou_b1i_telemetry_decoder.cc @@ -37,7 +37,6 @@ #include "beidou_dnav_utc_model.h" #include "configuration_interface.h" #include -#include BeidouB1iTelemetryDecoder::BeidouB1iTelemetryDecoder(ConfigurationInterface* configuration, diff --git a/src/algorithms/telemetry_decoder/adapters/beidou_b1i_telemetry_decoder.h b/src/algorithms/telemetry_decoder/adapters/beidou_b1i_telemetry_decoder.h index 1373b867b..cfc09ebea 100644 --- a/src/algorithms/telemetry_decoder/adapters/beidou_b1i_telemetry_decoder.h +++ b/src/algorithms/telemetry_decoder/adapters/beidou_b1i_telemetry_decoder.h @@ -35,7 +35,10 @@ #define GNSS_SDR_BEIDOU_B1I_TELEMETRY_DECODER_H_ #include "beidou_b1i_telemetry_decoder_gs.h" +#include "gnss_satellite.h" // for Gnss_Satellite #include "telemetry_decoder_interface.h" +#include // for basic_block_sptr, top_block_sptr +#include // for size_t #include class ConfigurationInterface; diff --git a/src/algorithms/telemetry_decoder/adapters/galileo_e1b_telemetry_decoder.cc b/src/algorithms/telemetry_decoder/adapters/galileo_e1b_telemetry_decoder.cc index cace56896..e5b12992c 100644 --- a/src/algorithms/telemetry_decoder/adapters/galileo_e1b_telemetry_decoder.cc +++ b/src/algorithms/telemetry_decoder/adapters/galileo_e1b_telemetry_decoder.cc @@ -38,7 +38,6 @@ #include "galileo_iono.h" #include "galileo_utc_model.h" #include -#include GalileoE1BTelemetryDecoder::GalileoE1BTelemetryDecoder(ConfigurationInterface* configuration, diff --git a/src/algorithms/telemetry_decoder/adapters/galileo_e1b_telemetry_decoder.h b/src/algorithms/telemetry_decoder/adapters/galileo_e1b_telemetry_decoder.h index 0e36a8a4c..1d39b37e4 100644 --- a/src/algorithms/telemetry_decoder/adapters/galileo_e1b_telemetry_decoder.h +++ b/src/algorithms/telemetry_decoder/adapters/galileo_e1b_telemetry_decoder.h @@ -38,6 +38,8 @@ #include "galileo_telemetry_decoder_gs.h" #include "gnss_satellite.h" #include "telemetry_decoder_interface.h" +#include // for basic_block_sptr, top_block_sptr +#include // for size_t #include diff --git a/src/algorithms/telemetry_decoder/adapters/galileo_e5a_telemetry_decoder.cc b/src/algorithms/telemetry_decoder/adapters/galileo_e5a_telemetry_decoder.cc index 6091e3a9f..6922b133c 100644 --- a/src/algorithms/telemetry_decoder/adapters/galileo_e5a_telemetry_decoder.cc +++ b/src/algorithms/telemetry_decoder/adapters/galileo_e5a_telemetry_decoder.cc @@ -41,7 +41,6 @@ #include "galileo_iono.h" #include "galileo_utc_model.h" #include -#include GalileoE5aTelemetryDecoder::GalileoE5aTelemetryDecoder(ConfigurationInterface* configuration, diff --git a/src/algorithms/telemetry_decoder/adapters/galileo_e5a_telemetry_decoder.h b/src/algorithms/telemetry_decoder/adapters/galileo_e5a_telemetry_decoder.h index 8c02818a8..1bfc7a6e4 100644 --- a/src/algorithms/telemetry_decoder/adapters/galileo_e5a_telemetry_decoder.h +++ b/src/algorithms/telemetry_decoder/adapters/galileo_e5a_telemetry_decoder.h @@ -38,7 +38,10 @@ #define GNSS_SDR_GALILEO_E5A_TELEMETRY_DECODER_H_ #include "galileo_telemetry_decoder_gs.h" +#include "gnss_satellite.h" // for Gnss_Satellite #include "telemetry_decoder_interface.h" +#include // for basic_block_sptr, top_block_sptr +#include // for size_t #include class ConfigurationInterface; diff --git a/src/algorithms/telemetry_decoder/adapters/glonass_l1_ca_telemetry_decoder.cc b/src/algorithms/telemetry_decoder/adapters/glonass_l1_ca_telemetry_decoder.cc index 893929c98..c48e2944d 100644 --- a/src/algorithms/telemetry_decoder/adapters/glonass_l1_ca_telemetry_decoder.cc +++ b/src/algorithms/telemetry_decoder/adapters/glonass_l1_ca_telemetry_decoder.cc @@ -37,7 +37,6 @@ #include "glonass_gnav_ephemeris.h" #include "glonass_gnav_utc_model.h" #include -#include GlonassL1CaTelemetryDecoder::GlonassL1CaTelemetryDecoder(ConfigurationInterface* configuration, diff --git a/src/algorithms/telemetry_decoder/adapters/glonass_l1_ca_telemetry_decoder.h b/src/algorithms/telemetry_decoder/adapters/glonass_l1_ca_telemetry_decoder.h index cdc78b432..3b5e13d15 100644 --- a/src/algorithms/telemetry_decoder/adapters/glonass_l1_ca_telemetry_decoder.h +++ b/src/algorithms/telemetry_decoder/adapters/glonass_l1_ca_telemetry_decoder.h @@ -35,7 +35,10 @@ #define GNSS_SDR_GLONASS_L1_CA_TELEMETRY_DECODER_H_ #include "glonass_l1_ca_telemetry_decoder_gs.h" +#include "gnss_satellite.h" // for Gnss_Satellite #include "telemetry_decoder_interface.h" +#include // for basic_block_sptr, top_block_sptr +#include // for size_t #include class ConfigurationInterface; diff --git a/src/algorithms/telemetry_decoder/adapters/glonass_l2_ca_telemetry_decoder.cc b/src/algorithms/telemetry_decoder/adapters/glonass_l2_ca_telemetry_decoder.cc index e73a8aad6..0347cf958 100644 --- a/src/algorithms/telemetry_decoder/adapters/glonass_l2_ca_telemetry_decoder.cc +++ b/src/algorithms/telemetry_decoder/adapters/glonass_l2_ca_telemetry_decoder.cc @@ -36,7 +36,6 @@ #include "glonass_gnav_ephemeris.h" #include "glonass_gnav_utc_model.h" #include -#include GlonassL2CaTelemetryDecoder::GlonassL2CaTelemetryDecoder(ConfigurationInterface* configuration, diff --git a/src/algorithms/telemetry_decoder/adapters/glonass_l2_ca_telemetry_decoder.h b/src/algorithms/telemetry_decoder/adapters/glonass_l2_ca_telemetry_decoder.h index 1ac52ccbb..3a36b7deb 100644 --- a/src/algorithms/telemetry_decoder/adapters/glonass_l2_ca_telemetry_decoder.h +++ b/src/algorithms/telemetry_decoder/adapters/glonass_l2_ca_telemetry_decoder.h @@ -33,8 +33,11 @@ #ifndef GNSS_SDR_GLONASS_L2_CA_TELEMETRY_DECODER_H_ #define GNSS_SDR_GLONASS_L2_CA_TELEMETRY_DECODER_H_ +#include "gnss_satellite.h" // for Gnss_Satellite #include "glonass_l2_ca_telemetry_decoder_gs.h" #include "telemetry_decoder_interface.h" +#include // for basic_block_sptr, top_block_sptr +#include // for size_t #include class ConfigurationInterface; diff --git a/src/algorithms/telemetry_decoder/adapters/gps_l1_ca_telemetry_decoder.cc b/src/algorithms/telemetry_decoder/adapters/gps_l1_ca_telemetry_decoder.cc index 4f2b65d85..b4ff602a3 100644 --- a/src/algorithms/telemetry_decoder/adapters/gps_l1_ca_telemetry_decoder.cc +++ b/src/algorithms/telemetry_decoder/adapters/gps_l1_ca_telemetry_decoder.cc @@ -37,7 +37,6 @@ #include "gps_iono.h" #include "gps_utc_model.h" #include -#include GpsL1CaTelemetryDecoder::GpsL1CaTelemetryDecoder(ConfigurationInterface* configuration, diff --git a/src/algorithms/telemetry_decoder/adapters/gps_l1_ca_telemetry_decoder.h b/src/algorithms/telemetry_decoder/adapters/gps_l1_ca_telemetry_decoder.h index 8596863ed..b43f8f426 100644 --- a/src/algorithms/telemetry_decoder/adapters/gps_l1_ca_telemetry_decoder.h +++ b/src/algorithms/telemetry_decoder/adapters/gps_l1_ca_telemetry_decoder.h @@ -33,8 +33,11 @@ #ifndef GNSS_SDR_GPS_L1_CA_TELEMETRY_DECODER_H_ #define GNSS_SDR_GPS_L1_CA_TELEMETRY_DECODER_H_ +#include "gnss_satellite.h" // for Gnss_Satellite #include "gps_l1_ca_telemetry_decoder_gs.h" #include "telemetry_decoder_interface.h" +#include // for basic_block_sptr, top_block_sptr +#include // for size_t #include class ConfigurationInterface; diff --git a/src/algorithms/telemetry_decoder/adapters/gps_l2c_telemetry_decoder.cc b/src/algorithms/telemetry_decoder/adapters/gps_l2c_telemetry_decoder.cc index 173a1f51c..601c6054a 100644 --- a/src/algorithms/telemetry_decoder/adapters/gps_l2c_telemetry_decoder.cc +++ b/src/algorithms/telemetry_decoder/adapters/gps_l2c_telemetry_decoder.cc @@ -37,7 +37,6 @@ #include "gps_cnav_iono.h" #include "gps_cnav_utc_model.h" #include -#include GpsL2CTelemetryDecoder::GpsL2CTelemetryDecoder(ConfigurationInterface* configuration, diff --git a/src/algorithms/telemetry_decoder/adapters/gps_l2c_telemetry_decoder.h b/src/algorithms/telemetry_decoder/adapters/gps_l2c_telemetry_decoder.h index 7a032004a..83263a0c8 100644 --- a/src/algorithms/telemetry_decoder/adapters/gps_l2c_telemetry_decoder.h +++ b/src/algorithms/telemetry_decoder/adapters/gps_l2c_telemetry_decoder.h @@ -33,8 +33,11 @@ #ifndef GNSS_SDR_GPS_L2C_TELEMETRY_DECODER_H_ #define GNSS_SDR_GPS_L2C_TELEMETRY_DECODER_H_ +#include "gnss_satellite.h" // for Gnss_Satellite #include "gps_l2c_telemetry_decoder_gs.h" #include "telemetry_decoder_interface.h" +#include // for basic_block_sptr, top_block_sptr +#include // for size_t #include class ConfigurationInterface; diff --git a/src/algorithms/telemetry_decoder/adapters/gps_l5_telemetry_decoder.cc b/src/algorithms/telemetry_decoder/adapters/gps_l5_telemetry_decoder.cc index f837c536b..c50ec9f51 100644 --- a/src/algorithms/telemetry_decoder/adapters/gps_l5_telemetry_decoder.cc +++ b/src/algorithms/telemetry_decoder/adapters/gps_l5_telemetry_decoder.cc @@ -33,7 +33,6 @@ #include "gps_l5_telemetry_decoder.h" #include "configuration_interface.h" #include -#include GpsL5TelemetryDecoder::GpsL5TelemetryDecoder(ConfigurationInterface* configuration, diff --git a/src/algorithms/telemetry_decoder/adapters/gps_l5_telemetry_decoder.h b/src/algorithms/telemetry_decoder/adapters/gps_l5_telemetry_decoder.h index ff2e04437..56fc3afd3 100644 --- a/src/algorithms/telemetry_decoder/adapters/gps_l5_telemetry_decoder.h +++ b/src/algorithms/telemetry_decoder/adapters/gps_l5_telemetry_decoder.h @@ -37,6 +37,8 @@ #include "gnss_satellite.h" #include "gps_l5_telemetry_decoder_gs.h" #include "telemetry_decoder_interface.h" +#include // for basic_block_sptr, top_block_sptr +#include // for size_t #include diff --git a/src/algorithms/telemetry_decoder/adapters/sbas_l1_telemetry_decoder.cc b/src/algorithms/telemetry_decoder/adapters/sbas_l1_telemetry_decoder.cc index 07cc67205..16d1d5fcb 100644 --- a/src/algorithms/telemetry_decoder/adapters/sbas_l1_telemetry_decoder.cc +++ b/src/algorithms/telemetry_decoder/adapters/sbas_l1_telemetry_decoder.cc @@ -32,10 +32,8 @@ #include "sbas_l1_telemetry_decoder.h" #include "configuration_interface.h" -#include "sbas_ephemeris.h" #include "sbas_l1_telemetry_decoder_gs.h" #include -#include SbasL1TelemetryDecoder::SbasL1TelemetryDecoder(ConfigurationInterface* configuration, diff --git a/src/algorithms/telemetry_decoder/adapters/sbas_l1_telemetry_decoder.h b/src/algorithms/telemetry_decoder/adapters/sbas_l1_telemetry_decoder.h index a1408095b..b6f9a8564 100644 --- a/src/algorithms/telemetry_decoder/adapters/sbas_l1_telemetry_decoder.h +++ b/src/algorithms/telemetry_decoder/adapters/sbas_l1_telemetry_decoder.h @@ -34,8 +34,11 @@ #define GNSS_SDR_SBAS_L1_TELEMETRY_DECODER_H_ +#include "gnss_satellite.h" // for Gnss_Satellite #include "sbas_l1_telemetry_decoder_gs.h" #include "telemetry_decoder_interface.h" +#include // for basic_block_sptr, top_block_sptr +#include // for size_t #include 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 d85414e10..8bb55eff2 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 @@ -36,7 +36,6 @@ #include "convolutional.h" #include "display.h" #include "gnss_synchro.h" -#include #include #include #include diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_telemetry_decoder_gs.cc b/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_telemetry_decoder_gs.cc index 3925866b2..36898d1be 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_telemetry_decoder_gs.cc +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_telemetry_decoder_gs.cc @@ -33,7 +33,6 @@ #include "convolutional.h" #include "display.h" #include "gnss_synchro.h" -#include #include #include #include diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/glonass_l1_ca_telemetry_decoder_gs.cc b/src/algorithms/telemetry_decoder/gnuradio_blocks/glonass_l1_ca_telemetry_decoder_gs.cc index aae203f02..f859d1644 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/glonass_l1_ca_telemetry_decoder_gs.cc +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/glonass_l1_ca_telemetry_decoder_gs.cc @@ -32,7 +32,6 @@ #include "glonass_l1_ca_telemetry_decoder_gs.h" -#include #include #include diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/glonass_l2_ca_telemetry_decoder_gs.cc b/src/algorithms/telemetry_decoder/gnuradio_blocks/glonass_l2_ca_telemetry_decoder_gs.cc index c558e626f..2b996d987 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/glonass_l2_ca_telemetry_decoder_gs.cc +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/glonass_l2_ca_telemetry_decoder_gs.cc @@ -32,7 +32,6 @@ #include "glonass_l2_ca_telemetry_decoder_gs.h" #include "display.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 adfc06a39..e9f925def 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 #include #include #include diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l2c_telemetry_decoder_gs.cc b/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l2c_telemetry_decoder_gs.cc index 4af93900d..e8cc9b830 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l2c_telemetry_decoder_gs.cc +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l2c_telemetry_decoder_gs.cc @@ -33,7 +33,6 @@ #include "gps_l2c_telemetry_decoder_gs.h" #include "display.h" #include "gnss_synchro.h" -#include #include #include #include diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l5_telemetry_decoder_gs.cc b/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l5_telemetry_decoder_gs.cc index a718ff7d4..f6560157a 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l5_telemetry_decoder_gs.cc +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l5_telemetry_decoder_gs.cc @@ -34,7 +34,6 @@ #include "gnss_synchro.h" #include "gps_cnav_ephemeris.h" #include "gps_cnav_iono.h" -#include #include #include #include diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/sbas_l1_telemetry_decoder_gs.cc b/src/algorithms/telemetry_decoder/gnuradio_blocks/sbas_l1_telemetry_decoder_gs.cc index c50b4ed37..c33e85116 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/sbas_l1_telemetry_decoder_gs.cc +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/sbas_l1_telemetry_decoder_gs.cc @@ -30,7 +30,6 @@ #include "sbas_l1_telemetry_decoder_gs.h" #include "gnss_synchro.h" -#include #include #include #include diff --git a/src/algorithms/telemetry_decoder/libs/viterbi_decoder.cc b/src/algorithms/telemetry_decoder/libs/viterbi_decoder.cc index febb18294..9c1fe1c53 100644 --- a/src/algorithms/telemetry_decoder/libs/viterbi_decoder.cc +++ b/src/algorithms/telemetry_decoder/libs/viterbi_decoder.cc @@ -31,6 +31,8 @@ #include "viterbi_decoder.h" #include +#include // for memset +#include // for operator<<, basic_ostream, char_traits, endl // logging #define EVENT 2 // logs important events which don't occur every block 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 d54357912..f86ebfe45 100644 --- a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.cc +++ b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.cc @@ -46,6 +46,7 @@ #include "galileo_e1_signal_processing.h" #include "galileo_e5_signal_processing.h" #include "gnss_sdr_create_directory.h" +#include "gnss_synchro.h" #include "gps_l2c_signal.h" #include "gps_l5_signal.h" #include "gps_sdr_signal_processing.h" @@ -53,15 +54,16 @@ #include "tracking_discriminators.h" #include #include -#include -#include +#include // for io_signature +#include // for scoped_lock +#include // for Mat_VarCreate +#include // for mp #include -#include -#include -#include -#include -#include -#include +#include // for fill_n +#include // for fmod, round, floor +#include // for exception +#include // for cout, cerr +#include 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 bcf605eb5..c1c9d6532 100644 --- a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.h +++ b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.h @@ -34,17 +34,19 @@ #include "cpu_multicorrelator_real_codes.h" #include "dll_pll_conf.h" -#include "gnss_synchro.h" #include "tracking_2nd_DLL_filter.h" #include "tracking_2nd_PLL_filter.h" #include -#include -#include -#include -#include -#include -#include +#include // for boost::shared_ptr +#include // for block +#include // for gr_complex +#include // for gr_vector_int, gr_vector... +#include // for pmt_t +#include // for int32_t +#include // for string, ofstream +#include // for pair +class Gnss_Synchro; class dll_pll_veml_tracking; using dll_pll_veml_tracking_sptr = boost::shared_ptr; diff --git a/src/core/receiver/CMakeLists.txt b/src/core/receiver/CMakeLists.txt index a9225792d..469960d47 100644 --- a/src/core/receiver/CMakeLists.txt +++ b/src/core/receiver/CMakeLists.txt @@ -143,6 +143,7 @@ target_link_libraries(core_receiver core_libs core_monitor PRIVATE + Boost::chrono Gflags::gflags Glog::glog signal_source_adapters diff --git a/src/core/receiver/control_message_factory.cc b/src/core/receiver/control_message_factory.cc index a9fb94702..566f884a4 100644 --- a/src/core/receiver/control_message_factory.cc +++ b/src/core/receiver/control_message_factory.cc @@ -30,7 +30,8 @@ #include "control_message_factory.h" #include - +#include // for memcpy +#include // for operator<<, basic_ostream // Constructor ControlMessageFactory::ControlMessageFactory() = default; diff --git a/src/core/receiver/control_thread.cc b/src/core/receiver/control_thread.cc index 6d40c030d..b6f81b8a0 100644 --- a/src/core/receiver/control_thread.cc +++ b/src/core/receiver/control_thread.cc @@ -35,6 +35,7 @@ #include "control_thread.h" #include "concurrent_map.h" #include "concurrent_queue.h" +#include "configuration_interface.h" #include "control_message_factory.h" #include "file_configuration.h" #include "galileo_almanac.h" @@ -45,29 +46,36 @@ #include "glonass_gnav_ephemeris.h" #include "glonass_gnav_utc_model.h" #include "gnss_flowgraph.h" +#include "gnss_satellite.h" #include "gnss_sdr_flags.h" -#include "gps_almanac.h" -#include "gps_ephemeris.h" -#include "gps_iono.h" -#include "gps_utc_model.h" -#include "pvt_interface.h" -#include "rtklib_conversions.h" -#include "rtklib_ephemeris.h" -#include "rtklib_rtkcmn.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "gps_acq_assist.h" // for Gps_Acq_Assist +#include "gps_almanac.h" // for Gps_Almanac +#include "gps_cnav_ephemeris.h" // for Gps_CNAV_Ephemeris +#include "gps_cnav_utc_model.h" // for Gps_CNAV_Utc_Model +#include "gps_ephemeris.h" // for Gps_Ephemeris +#include "gps_iono.h" // for Gps_Iono +#include "gps_utc_model.h" // for Gps_Utc_Model +#include "pvt_interface.h" // for PvtInterface +#include "rtklib.h" // for gtime_t, alm_t +#include "rtklib_conversions.h" // for alm_to_rtklib +#include "rtklib_ephemeris.h" // for alm2pos, eph2pos +#include "rtklib_rtkcmn.h" // for utc2gpst +#include // for bad_lexical_cast +#include // for LOG +#include // for message::sptr +#include // for make_any +#include // for find, min +#include // for milliseconds +#include // for floor, fmod, log +#include // for gmtime, strftime +#include // for exception +#include // for operator<<, endl +#include // for numeric_limits +#include // for map +#include // for pthread_cancel +#include // for invalid_argument +#include // for IPC_CREAT +#include // for msgctl, msgget extern Concurrent_Map global_gps_acq_assist_map; diff --git a/src/core/receiver/control_thread.h b/src/core/receiver/control_thread.h index a1ecc5c1a..7d58226e9 100644 --- a/src/core/receiver/control_thread.h +++ b/src/core/receiver/control_thread.h @@ -35,20 +35,24 @@ #ifndef GNSS_SDR_CONTROL_THREAD_H_ #define GNSS_SDR_CONTROL_THREAD_H_ -#include "agnss_ref_location.h" -#include "agnss_ref_time.h" -#include "configuration_interface.h" -#include "control_message_factory.h" -#include "gnss_flowgraph.h" -#include "gnss_satellite.h" -#include "gnss_sdr_supl_client.h" -#include "tcp_cmd_interface.h" -#include -#include -#include -#include -#include +#include "agnss_ref_location.h" // for Agnss_Ref_Location +#include "agnss_ref_time.h" // for Agnss_Ref_Time +#include "control_message_factory.h" // for ControlMessage +#include "gnss_sdr_supl_client.h" // for Gnss_Sdr_Supl_Client +#include "tcp_cmd_interface.h" // for TcpCmdInterface +#include // for arma::vec +#include // for boost::thread +#include // for msg_queue, msg_queue::sptr +#include // for time_t +#include // for shared_ptr +#include // for string +#include // for std::thread +#include // for pair +#include // for vector +class ConfigurationInterface; +class GNSSFlowgraph; +class Gnss_Satellite; /*! * \brief This class represents the main thread of the application, so the name is ControlThread. diff --git a/src/core/receiver/gnss_block_factory.cc b/src/core/receiver/gnss_block_factory.cc index 0c7860a55..81df9c0f8 100644 --- a/src/core/receiver/gnss_block_factory.cc +++ b/src/core/receiver/gnss_block_factory.cc @@ -36,6 +36,7 @@ #include "gnss_block_factory.h" +#include "acquisition_interface.h" // for AcquisitionInterface #include "array_signal_conditioner.h" #include "beamformer_filter.h" #include "beidou_b1i_dll_pll_tracking.h" @@ -105,8 +106,13 @@ #include "signal_conditioner.h" #include "spir_file_signal_source.h" #include "spir_gss6450_file_signal_source.h" +#include "telemetry_decoder_interface.h" +#include "tracking_interface.h" #include "two_bit_cpx_file_signal_source.h" #include "two_bit_packed_file_signal_source.h" +#include +#include // for exception +#include // for move #if RAW_UDP #include "custom_udp_signal_source.h" @@ -165,13 +171,6 @@ #include "gps_l1_ca_dll_pll_tracking_gpu.h" #endif -#include -#include -#include -#include -#include -#include - GNSSBlockFactory::GNSSBlockFactory() = default; diff --git a/src/core/receiver/gnss_block_factory.h b/src/core/receiver/gnss_block_factory.h index 2b2acc8b6..830349733 100644 --- a/src/core/receiver/gnss_block_factory.h +++ b/src/core/receiver/gnss_block_factory.h @@ -37,10 +37,11 @@ #ifndef GNSS_SDR_BLOCK_FACTORY_H_ #define GNSS_SDR_BLOCK_FACTORY_H_ -#include -#include -#include -#include +#include // for boost::shared_ptr +#include // for msg_queue::sptr, msg_queue +#include // for unique_ptr, shared_ptr +#include // for string +#include // for vector class ConfigurationInterface; diff --git a/src/core/receiver/gnss_flowgraph.cc b/src/core/receiver/gnss_flowgraph.cc index 5b7d671d5..5881a3c49 100644 --- a/src/core/receiver/gnss_flowgraph.cc +++ b/src/core/receiver/gnss_flowgraph.cc @@ -42,16 +42,28 @@ #include "channel_interface.h" #include "configuration_interface.h" #include "gnss_block_factory.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "gnss_block_interface.h" +#include "gnss_satellite.h" +#include "gnss_synchro_monitor.h" +#include // for boost::lexical_cast +#include // for boost::shared_ptr +#include // for boost::tokenizer +#include // for LOG +#include // for basic_block +#include // for gr::filter::firdes +#include // for io_signature +#include // for top_block, make_top_block +#include // for mp +#include // for transform, sort, unique +#include // for floor +#include // for size_t +#include // for exception +#include // for operator<< +#include // for insert_iterator, inserter +#include // for set +#include // for invalid_argument +#include // for thread +#include // for move #ifdef GR_GREATER_38 #include #else diff --git a/src/core/receiver/gnss_flowgraph.h b/src/core/receiver/gnss_flowgraph.h index 0a95eb60b..700783df1 100644 --- a/src/core/receiver/gnss_flowgraph.h +++ b/src/core/receiver/gnss_flowgraph.h @@ -37,29 +37,27 @@ #ifndef GNSS_SDR_GNSS_FLOWGRAPH_H_ #define GNSS_SDR_GNSS_FLOWGRAPH_H_ -#include "GPS_L1_CA.h" -#include "channel_interface.h" -#include "configuration_interface.h" -#include "gnss_block_factory.h" -#include "gnss_block_interface.h" #include "gnss_sdr_sample_counter.h" #include "gnss_signal.h" -#include "gnss_synchro_monitor.h" #include "pvt_interface.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include - +#include // for msg_queue, msg_queue::sptr +#include // for basic_block_sptr, top_block_sptr +#include // for pmt_t +#include // for list +#include // for map +#include // for for shared_ptr, dynamic_pointer_cast +#include // for mutex +#include // for string +#include // for pair +#include // for vector #if ENABLE_FPGA #include "gnss_sdr_fpga_sample_counter.h" #endif +class ChannelInterface; +class ConfigurationInterface; +class GNSSBlockInterface; +class Gnss_Satellite; /*! \brief This class represents a GNSS flow graph. * diff --git a/src/core/system_parameters/agnss_ref_location.h b/src/core/system_parameters/agnss_ref_location.h index 083305987..2fb96f6ea 100644 --- a/src/core/system_parameters/agnss_ref_location.h +++ b/src/core/system_parameters/agnss_ref_location.h @@ -32,7 +32,6 @@ #ifndef GNSS_SDR_AGNSS_REF_LOCATION_H_ #define GNSS_SDR_AGNSS_REF_LOCATION_H_ -#include #include diff --git a/src/core/system_parameters/agnss_ref_time.h b/src/core/system_parameters/agnss_ref_time.h index 574d9106a..e938ab013 100644 --- a/src/core/system_parameters/agnss_ref_time.h +++ b/src/core/system_parameters/agnss_ref_time.h @@ -32,7 +32,6 @@ #ifndef GNSS_SDR_AGNSS_REF_TIME_H_ #define GNSS_SDR_AGNSS_REF_TIME_H_ -#include #include diff --git a/src/core/system_parameters/beidou_dnav_almanac.h b/src/core/system_parameters/beidou_dnav_almanac.h index 5c31df3f6..ad6739123 100644 --- a/src/core/system_parameters/beidou_dnav_almanac.h +++ b/src/core/system_parameters/beidou_dnav_almanac.h @@ -34,7 +34,6 @@ #define GNSS_SDR_BEIDOU_DNAV_ALMANAC_H_ #include -#include /*! diff --git a/src/core/system_parameters/beidou_dnav_navigation_message.cc b/src/core/system_parameters/beidou_dnav_navigation_message.cc index e280d07f8..40cabe10a 100644 --- a/src/core/system_parameters/beidou_dnav_navigation_message.cc +++ b/src/core/system_parameters/beidou_dnav_navigation_message.cc @@ -32,13 +32,8 @@ #include "beidou_dnav_navigation_message.h" #include "gnss_satellite.h" -#include // for boost::crc_basic, boost::crc_optimal -#include -#include -#include -#include -#include -#include +#include // for cos, sin, fmod, sqrt, atan2, fabs, floor +#include // for string, operator<<, cout, ostream, endl void Beidou_Dnav_Navigation_Message::reset() diff --git a/src/core/system_parameters/beidou_dnav_navigation_message.h b/src/core/system_parameters/beidou_dnav_navigation_message.h index 93c1c9a24..f2ca11e39 100644 --- a/src/core/system_parameters/beidou_dnav_navigation_message.h +++ b/src/core/system_parameters/beidou_dnav_navigation_message.h @@ -35,11 +35,11 @@ #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 +#include #include #include #include @@ -47,9 +47,7 @@ /*! - * \brief This class decodes a BeiDou D1 NAV Data message as described in IS-GPS-200E - * - * See http://www.gps.gov/technical/icwg/IS-GPS-200E.pdf Appendix II + * \brief This class decodes a BeiDou D1 NAV Data message */ class Beidou_Dnav_Navigation_Message { @@ -61,13 +59,17 @@ private: /* * Accounts for the beginning or end of week crossover * - * See paragraph 20.3.3.3.3.1 (IS-GPS-200E) * \param[in] - time in seconds * \param[out] - corrected time, in seconds */ double check_t(double time); public: + /*! + * Default constructor + */ + Beidou_Dnav_Navigation_Message(); + // System flags for data processing bool flag_eph_valid; bool flag_utc_model_valid; @@ -119,7 +121,7 @@ public: double d_Toe_sf2; //!< Ephemeris data reference time of week in subframe 2, D1 Message double d_Toe_sf3; //!< Ephemeris data reference time of week in subframe 3, D1 Message double d_Toe; //!< Ephemeris data reference time of week in subframe 1, D2 Message - double d_Toc; //!< clock data reference time (Ref. 20.3.3.3.3.1 IS-GPS-200E) [s] + double d_Toc; //!< clock data reference time [s] double d_Cic; //!< Amplitude of the Cosine Harmonic Correction Term to the Angle of Inclination [rad] double d_OMEGA0; //!< Longitude of Ascending Node of Orbit Plane at Weekly Epoch [semi-circles] double d_Cis; //!< Amplitude of the Sine Harmonic Correction Term to the Angle of Inclination [rad] @@ -218,8 +220,8 @@ public: double d_beta3; //!< Coefficient 3 of a cubic equation representing the period of the model [s(semi-circle)^3] // UTC parameters - double d_A1UTC; //!< 1st order term of a model that relates GPS and UTC time (ref. 20.3.3.5.2.4 IS-GPS-200E) [s/s] - double d_A0UTC; //!< Constant of a model that relates GPS and UTC time (ref. 20.3.3.5.2.4 IS-GPS-200E) [s] + double d_A1UTC; //!< 1st order term of a model that relates GPS and UTC time [s/s] + double d_A0UTC; //!< Constant of a model that relates GPS and UTC time [s] double d_DeltaT_LS; //!< delta time due to leap seconds [s]. Number of leap seconds since 6-Jan-1980 as transmitted by the GPS almanac. int32_t i_WN_LSF; //!< Week number at the end of which the leap second becomes effective [weeks] int32_t i_DN; //!< Day number (DN) at the end of which the leap second becomes effective [days] @@ -249,26 +251,24 @@ public: double d_satvel_Y; //!< Earth-fixed velocity coordinate y of the satellite [m] double d_satvel_Z; //!< Earth-fixed velocity coordinate z of the satellite [m] - // public functions void reset(); /*! - * \brief Obtain a GPS SV Ephemeris class filled with current SV data + * \brief Obtain a BDS SV Ephemeris class filled with current SV data */ Beidou_Dnav_Ephemeris get_ephemeris(); /*! - * \brief Obtain a GPS ionospheric correction parameters class filled with current SV data + * \brief Obtain a BDS ionospheric correction parameters class filled with current SV data */ Beidou_Dnav_Iono get_iono(); /*! - * \brief Obtain a GPS UTC model parameters class filled with current SV data + * \brief Obtain a BDS UTC model parameters class filled with current SV data */ Beidou_Dnav_Utc_Model get_utc_model(); - /*! * \brief Decodes the BDS D1 NAV message */ @@ -281,20 +281,18 @@ public: /*! * \brief Computes the position of the satellite - * - * Implementation of Table 20-IV (IS-GPS-200E) */ void satellitePosition(double transmitTime); /*! * \brief Sets (\a d_satClkCorr) according to the User Algorithm for SV Clock Correction - * and returns the corrected clock (IS-GPS-200E, 20.3.3.3.3.1) + * and returns the corrected clock */ double sv_clock_correction(double transmitTime); /*! * \brief Computes the Coordinated Universal Time (UTC) and - * returns it in [s] (IS-GPS-200E, 20.3.3.5.2.4) + * returns it in [s] */ double utc_time(const double beidoutime_corrected) const; @@ -319,10 +317,6 @@ public: * \brief Returns true if new UTC model has arrived. The flag is set to false when the function is executed */ bool have_new_almanac(); - /*! - * Default constructor - */ - Beidou_Dnav_Navigation_Message(); }; #endif diff --git a/src/core/system_parameters/galileo_fnav_message.cc b/src/core/system_parameters/galileo_fnav_message.cc index 689d8e339..9dc6eb49e 100644 --- a/src/core/system_parameters/galileo_fnav_message.cc +++ b/src/core/system_parameters/galileo_fnav_message.cc @@ -38,8 +38,9 @@ #include // for boost::crc_basic, boost::crc_optimal #include #include -#include - +#include // for reverse +#include // for string, operator<< +#include // for back_insert_iterator using CRC_Galileo_FNAV_type = boost::crc_optimal<24, 0x1864CFBu, 0x0, 0x0, false, false>; diff --git a/src/core/system_parameters/galileo_iono.h b/src/core/system_parameters/galileo_iono.h index ab36199c0..5fb5a3755 100644 --- a/src/core/system_parameters/galileo_iono.h +++ b/src/core/system_parameters/galileo_iono.h @@ -33,6 +33,7 @@ #define GNSS_SDR_GALILEO_IONO_H_ #include +#include /*! * \brief This class is a storage for the GALILEO IONOSPHERIC data as described in Galileo ICD paragraph 5.1.6 diff --git a/src/core/system_parameters/galileo_navigation_message.h b/src/core/system_parameters/galileo_navigation_message.h index cf1eb0a0f..6d8b0363a 100644 --- a/src/core/system_parameters/galileo_navigation_message.h +++ b/src/core/system_parameters/galileo_navigation_message.h @@ -40,7 +40,6 @@ #include "galileo_utc_model.h" #include #include -#include #include #include #include diff --git a/src/core/system_parameters/glonass_gnav_ephemeris.cc b/src/core/system_parameters/glonass_gnav_ephemeris.cc index 1e0941dd7..9059b5940 100644 --- a/src/core/system_parameters/glonass_gnav_ephemeris.cc +++ b/src/core/system_parameters/glonass_gnav_ephemeris.cc @@ -32,7 +32,8 @@ #include "glonass_gnav_ephemeris.h" #include "GLONASS_L1_L2_CA.h" -#include "gnss_satellite.h" +#include +#include #include diff --git a/src/core/system_parameters/glonass_gnav_ephemeris.h b/src/core/system_parameters/glonass_gnav_ephemeris.h index 6f53a992f..b5cf60f66 100644 --- a/src/core/system_parameters/glonass_gnav_ephemeris.h +++ b/src/core/system_parameters/glonass_gnav_ephemeris.h @@ -35,7 +35,7 @@ #define GNSS_SDR_GLONASS_GNAV_EPHEMERIS_H_ -#include +#include // for ptime #include #include diff --git a/src/core/system_parameters/glonass_gnav_navigation_message.cc b/src/core/system_parameters/glonass_gnav_navigation_message.cc index 4433efc8a..c3d4176cd 100644 --- a/src/core/system_parameters/glonass_gnav_navigation_message.cc +++ b/src/core/system_parameters/glonass_gnav_navigation_message.cc @@ -31,8 +31,11 @@ */ #include "glonass_gnav_navigation_message.h" +#include "MATH_CONSTANTS.h" // for TWO_N20, TWO_N30, TWO_N14, TWO_N15, TWO_N18 #include "gnss_satellite.h" #include +#include +#include // for operator<< void Glonass_Gnav_Navigation_Message::reset() diff --git a/src/core/system_parameters/glonass_gnav_navigation_message.h b/src/core/system_parameters/glonass_gnav_navigation_message.h index 6f1f92312..3c2af1243 100644 --- a/src/core/system_parameters/glonass_gnav_navigation_message.h +++ b/src/core/system_parameters/glonass_gnav_navigation_message.h @@ -41,6 +41,9 @@ #include "glonass_gnav_utc_model.h" #include #include +#include // for pair +#include // for vector +#include /*! diff --git a/src/core/system_parameters/gnss_satellite.h b/src/core/system_parameters/gnss_satellite.h index 064b34b2e..0e97c5ce3 100644 --- a/src/core/system_parameters/gnss_satellite.h +++ b/src/core/system_parameters/gnss_satellite.h @@ -34,6 +34,7 @@ #include #include +#include #include #include diff --git a/src/core/system_parameters/gps_cnav_ephemeris.cc b/src/core/system_parameters/gps_cnav_ephemeris.cc index cb96a8a73..6a6609366 100644 --- a/src/core/system_parameters/gps_cnav_ephemeris.cc +++ b/src/core/system_parameters/gps_cnav_ephemeris.cc @@ -31,8 +31,10 @@ */ #include "gps_cnav_ephemeris.h" +#include "MATH_CONSTANTS.h" // for PI, SPEED_OF_LIGHT #include + Gps_CNAV_Ephemeris::Gps_CNAV_Ephemeris() { i_satellite_PRN = 0U; diff --git a/src/core/system_parameters/gps_cnav_ephemeris.h b/src/core/system_parameters/gps_cnav_ephemeris.h index 5f39454ea..aed92612b 100644 --- a/src/core/system_parameters/gps_cnav_ephemeris.h +++ b/src/core/system_parameters/gps_cnav_ephemeris.h @@ -32,9 +32,8 @@ #ifndef GNSS_SDR_GPS_CNAV_EPHEMERIS_H_ #define GNSS_SDR_GPS_CNAV_EPHEMERIS_H_ -#include "GPS_CNAV.h" -#include #include +#include /*! diff --git a/src/core/system_parameters/gps_cnav_iono.h b/src/core/system_parameters/gps_cnav_iono.h index fa60b6a9b..ae4c57526 100644 --- a/src/core/system_parameters/gps_cnav_iono.h +++ b/src/core/system_parameters/gps_cnav_iono.h @@ -33,7 +33,6 @@ #define GNSS_SDR_GPS_CNAV_IONO_H_ -#include #include diff --git a/src/core/system_parameters/gps_cnav_utc_model.h b/src/core/system_parameters/gps_cnav_utc_model.h index 555c7c640..abe801cf9 100644 --- a/src/core/system_parameters/gps_cnav_utc_model.h +++ b/src/core/system_parameters/gps_cnav_utc_model.h @@ -32,7 +32,6 @@ #ifndef GNSS_SDR_GPS_CNAV_UTC_MODEL_H_ #define GNSS_SDR_GPS_CNAV_UTC_MODEL_H_ -#include #include #include diff --git a/src/core/system_parameters/gps_ephemeris.h b/src/core/system_parameters/gps_ephemeris.h index 683eb9135..b07a4ca4c 100644 --- a/src/core/system_parameters/gps_ephemeris.h +++ b/src/core/system_parameters/gps_ephemeris.h @@ -33,7 +33,6 @@ #define GNSS_SDR_GPS_EPHEMERIS_H_ -#include #include #include #include diff --git a/src/core/system_parameters/gps_iono.h b/src/core/system_parameters/gps_iono.h index 8a87e21d4..069fa20cb 100644 --- a/src/core/system_parameters/gps_iono.h +++ b/src/core/system_parameters/gps_iono.h @@ -33,7 +33,6 @@ #define GNSS_SDR_GPS_IONO_H_ -#include #include diff --git a/src/core/system_parameters/gps_navigation_message.h b/src/core/system_parameters/gps_navigation_message.h index 1e79a02c9..b2a7b5bb3 100644 --- a/src/core/system_parameters/gps_navigation_message.h +++ b/src/core/system_parameters/gps_navigation_message.h @@ -34,7 +34,6 @@ #include "GPS_L1_CA.h" -#include "gps_almanac.h" #include "gps_ephemeris.h" #include "gps_iono.h" #include "gps_utc_model.h" diff --git a/src/main/CMakeLists.txt b/src/main/CMakeLists.txt index ad785f0f0..4561b7119 100644 --- a/src/main/CMakeLists.txt +++ b/src/main/CMakeLists.txt @@ -27,7 +27,6 @@ target_link_libraries(gnss-sdr Glog::glog Threads::Threads core_receiver - gnss_sdr_flags ) target_compile_definitions(gnss-sdr PRIVATE -DGNSS_SDR_VERSION="${VERSION}") diff --git a/src/main/main.cc b/src/main/main.cc index 0a90f4a14..696ff412b 100644 --- a/src/main/main.cc +++ b/src/main/main.cc @@ -42,20 +42,20 @@ #include "concurrent_map.h" #include "concurrent_queue.h" #include "control_thread.h" -#include "gnss_sdr_flags.h" #include "gps_acq_assist.h" -#include -#include // for exception -#include // for create_directories, exists -#include // for path, operator<< -#include // for error_code -#include -#include -#include -#include -#include -#include -#include +#include // for diagnostic_informatio +#include // for exception +#include // for create_directories, exists +#include // for path, operator<< +#include // for error_code +#include // for thread_resource_error +#include // for ShutDownCommandLineFlags +#include // for FLAGS_log_dir +#include // for time_point +#include // for exception +#include // for operator<<, endl +#include // for unique_ptr +#include // for string #if CUDA_GPU_ACCEL // For the CUDA runtime routines (prefixed with "cuda_")