1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-19 05:33:02 +00:00

Removed unnecessary code

This commit is contained in:
piyush0411 2020-07-25 15:58:59 +05:30
parent e8f4eb7441
commit b6ecd9c48f
2 changed files with 2 additions and 12 deletions

View File

@ -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)); 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<const Gnss_Synchro **>(&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( galileo_telemetry_decoder_gs::galileo_telemetry_decoder_gs(
const Gnss_Satellite &satellite, int frame_type, 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 // 1. Copy the current tracking output
current_symbol = in[0][0]; current_symbol = in[0][0];
// add new symbol to the symbol queue // add new symbol to the symbol queue
signal = current_symbol.Signal[0];
switch (d_frame_type) switch (d_frame_type)
{ {
case 1: // INAV case 1: // INAV

View File

@ -70,10 +70,6 @@ public:
int general_work(int noutput_items, gr_vector_int &ninput_items, int general_work(int noutput_items, gr_vector_int &ninput_items,
gr_vector_const_void_star &input_items, gr_vector_void_star &output_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: private:
friend galileo_telemetry_decoder_gs_sptr galileo_make_telemetry_decoder_gs( friend galileo_telemetry_decoder_gs_sptr galileo_make_telemetry_decoder_gs(
@ -141,7 +137,7 @@ private:
bool d_flag_preamble; bool d_flag_preamble;
bool d_dump; 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 #endif // GNSS_SDR_GALILEO_TELEMETRY_DECODER_GS_H