23 #ifndef GNSS_SDR_GALILEO_TELEMETRY_DECODER_GS_H 24 #define GNSS_SDR_GALILEO_TELEMETRY_DECODER_GS_H 30 #include <boost/circular_buffer.hpp> 31 #include <gnuradio/block.h> 32 #include <gnuradio/types.h> 38 #if GNURADIO_USES_STD_POINTERS 41 #include <boost/shared_ptr.hpp> 46 #if GNURADIO_USES_STD_POINTERS 47 using galileo_telemetry_decoder_gs_sptr = std::shared_ptr<galileo_telemetry_decoder_gs>;
49 using galileo_telemetry_decoder_gs_sptr = boost::shared_ptr<galileo_telemetry_decoder_gs>;
52 galileo_telemetry_decoder_gs_sptr galileo_make_telemetry_decoder_gs(
67 int32_t flag_even_word_arrived;
72 int general_work(
int noutput_items, gr_vector_int &ninput_items,
73 gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
77 friend galileo_telemetry_decoder_gs_sptr galileo_make_telemetry_decoder_gs(
84 const int32_t d_nn = 2;
85 const int32_t d_KK = 7;
87 void viterbi_decoder(
float *page_part_symbols, int32_t *page_part_bits);
88 void deinterleaver(int32_t rows, int32_t cols,
const float *in,
float *out);
89 void decode_INAV_word(
float *page_part_symbols, int32_t frame_length);
90 void decode_FNAV_word(
float *page_symbols, int32_t frame_length);
93 std::vector<int32_t> d_preamble_samples;
94 std::vector<float> d_page_part_symbols;
95 std::vector<int32_t> d_out0;
96 std::vector<int32_t> d_out1;
97 std::vector<int32_t> d_state0;
98 std::vector<int32_t> d_state1;
100 std::string d_dump_filename;
101 std::ofstream d_dump_file;
103 boost::circular_buffer<float> d_symbol_history;
113 uint64_t d_sample_counter;
114 uint64_t d_preamble_index;
115 uint64_t d_last_valid_preamble;
117 int32_t d_mm = d_KK - 1;
118 int32_t d_codelength;
119 int32_t d_datalength;
120 int32_t d_frame_type;
121 int32_t d_bits_per_preamble;
122 int32_t d_samples_per_preamble;
123 int32_t d_preamble_period_symbols;
124 int32_t d_CRC_error_counter;
127 uint32_t d_PRN_code_period_ms;
128 uint32_t d_required_symbols;
129 uint32_t d_frame_length_symbols;
131 uint32_t d_TOW_at_Preamble_ms;
132 uint32_t d_TOW_at_current_symbol_ms;
133 uint32_t d_max_symbols_without_valid_frame;
137 bool d_sent_tlm_failed_msg;
138 bool d_flag_frame_sync;
139 bool d_flag_PLL_180_deg_phase_locked;
141 bool d_flag_preamble;
145 #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.
void set_satellite(const Gnss_Satellite &satellite)
Set satellite PRN.
Implementation of a Galileo I/NAV Data message as described in Galileo OS SIS ICD Issue 1...
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 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...