20 #ifndef GNSS_SDR_GALILEO_TELEMETRY_DECODER_GS_H 21 #define GNSS_SDR_GALILEO_TELEMETRY_DECODER_GS_H 29 #include <boost/circular_buffer.hpp> 30 #include <gnuradio/block.h> 31 #include <gnuradio/types.h> 45 using galileo_telemetry_decoder_gs_sptr = gnss_shared_ptr<galileo_telemetry_decoder_gs>;
47 galileo_telemetry_decoder_gs_sptr galileo_make_telemetry_decoder_gs(
62 int32_t flag_even_word_arrived;
67 int general_work(
int noutput_items, gr_vector_int &ninput_items,
68 gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
72 friend galileo_telemetry_decoder_gs_sptr galileo_make_telemetry_decoder_gs(
79 const int32_t d_nn = 2;
80 const int32_t d_KK = 7;
82 void viterbi_decoder(
float *page_part_symbols, int32_t *page_part_bits);
83 void deinterleaver(int32_t rows, int32_t cols,
const float *in,
float *out);
84 void decode_INAV_word(
float *page_part_symbols, int32_t frame_length);
85 void decode_FNAV_word(
float *page_symbols, int32_t frame_length);
86 void decode_CNAV_word(
float *page_symbols, int32_t page_length);
89 std::vector<int32_t> d_preamble_samples;
90 std::vector<float> d_page_part_symbols;
91 std::vector<int32_t> d_out0;
92 std::vector<int32_t> d_out1;
93 std::vector<int32_t> d_state0;
94 std::vector<int32_t> d_state1;
96 std::string d_dump_filename;
97 std::ofstream d_dump_file;
99 boost::circular_buffer<float> d_symbol_history;
110 uint64_t d_sample_counter;
111 uint64_t d_preamble_index;
112 uint64_t d_last_valid_preamble;
114 int32_t d_mm = d_KK - 1;
115 int32_t d_codelength;
116 int32_t d_datalength;
117 int32_t d_frame_type;
118 int32_t d_bits_per_preamble;
119 int32_t d_samples_per_preamble;
120 int32_t d_preamble_period_symbols;
121 int32_t d_CRC_error_counter;
124 uint32_t d_PRN_code_period_ms;
125 uint32_t d_required_symbols;
126 uint32_t d_frame_length_symbols;
128 uint32_t d_TOW_at_Preamble_ms;
129 uint32_t d_TOW_at_current_symbol_ms;
130 uint32_t d_max_symbols_without_valid_frame;
134 bool d_sent_tlm_failed_msg;
135 bool d_flag_frame_sync;
136 bool d_flag_PLL_180_deg_phase_locked;
138 bool d_flag_preamble;
147 #endif // GNSS_SDR_GALILEO_TELEMETRY_DECODER_GS_H This class handles the Galileo F/NAV Data message, as described in the Galileo Open Service Signal in...
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
This is where all signal processing takes place.
Class that contains all the configuration parameters for generic telemetry decoder block...
void set_satellite(const Gnss_Satellite &satellite)
Set satellite PRN.
This class handles the Galileo CNAV Data message, as described in the Galileo High Accuracy Service E...
Implementation of a Galileo I/NAV Data message as described in Galileo OS SIS ICD Issue 1...
This interface represents a GNSS block.
Interface of the Gnss_Satellite class.
This class handles the Galileo I/NAV Data message, as described in the Galileo Open Service Signal in...
This class represents a GNSS satellite.
Implementation of a Galileo CNAV Data message as described in Galileo High Accuracy Service E6-B Sign...
Implementation of a Galileo F/NAV Data message as described in Galileo OS SIS ICD Issue 1...
void set_channel(int32_t channel)
Set receiver's channel.
This class implements a block that decodes the INAV and FNAV data defined in Galileo ICD...