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 9e96882d2..ac38b780b 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 @@ -49,13 +49,6 @@ galileo_make_telemetry_decoder_gs(const Gnss_Satellite &satellite, int frame_typ return galileo_telemetry_decoder_gs_sptr(new galileo_telemetry_decoder_gs(satellite, frame_type, dump)); } -void galileo_telemetry_decoder_gs::set_signal_type(gr_vector_const_void_star &input_items) -{ - const auto **in = reinterpret_cast(&input_items[0]); // Get the input buffer pointer - Gnss_Synchro current_symbol{}; // structure to save the synchronization information and send the output object to the next block - current_symbol = in[0][0]; - signal = current_symbol.Signal[0]; -} galileo_telemetry_decoder_gs::galileo_telemetry_decoder_gs( const Gnss_Satellite &satellite, int frame_type, @@ -488,6 +481,7 @@ int galileo_telemetry_decoder_gs::general_work(int noutput_items __attribute__(( // 1. Copy the current tracking output current_symbol = in[0][0]; // add new symbol to the symbol queue + signal = current_symbol.Signal[0]; switch (d_frame_type) { case 1: // INAV 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 d3fe61124..55de13239 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 @@ -70,10 +70,6 @@ public: 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 sets the signal type (Galileo E1 or Galileo E5b) - */ - void set_signal_type(gr_vector_const_void_star &input_items); private: friend galileo_telemetry_decoder_gs_sptr galileo_make_telemetry_decoder_gs( @@ -141,7 +137,7 @@ private: bool d_flag_preamble; bool d_dump; - char signal; + char signal; // This variable will store which signal we are dealing with (Galileo E1 or E5b) }; #endif // GNSS_SDR_GALILEO_TELEMETRY_DECODER_GS_H