19 #ifndef GNSS_SDR_BEIDOU_B1I_TELEMETRY_DECODER_GS_H 20 #define GNSS_SDR_BEIDOU_B1I_TELEMETRY_DECODER_GS_H 27 #include <boost/circular_buffer.hpp> 28 #include <gnuradio/block.h> 29 #include <gnuradio/types.h> 43 using beidou_b1i_telemetry_decoder_gs_sptr = gnss_shared_ptr<beidou_b1i_telemetry_decoder_gs>;
45 beidou_b1i_telemetry_decoder_gs_sptr beidou_b1i_make_telemetry_decoder_gs(
65 int general_work(
int noutput_items, gr_vector_int &ninput_items,
66 gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
69 friend beidou_b1i_telemetry_decoder_gs_sptr beidou_b1i_make_telemetry_decoder_gs(
75 void decode_subframe(
float *symbols);
76 void decode_word(int32_t word_counter,
const float *enc_word_symbols, int32_t *dec_word_symbols);
77 void decode_bch15_11_01(
const int32_t *bits, std::array<int32_t, 15> &decbits);
80 std::array<int32_t, BEIDOU_DNAV_PREAMBLE_LENGTH_SYMBOLS> d_preamble_samples{};
82 std::array<float, BEIDOU_DNAV_PREAMBLE_PERIOD_SYMBOLS> d_subframe_symbols{};
85 boost::circular_buffer<float> d_symbol_history;
92 std::string d_dump_filename;
93 std::ofstream d_dump_file;
95 uint64_t d_sample_counter;
96 uint64_t d_preamble_index;
99 int32_t d_symbols_per_preamble;
100 int32_t d_samples_per_preamble;
101 int32_t d_preamble_period_samples;
102 int32_t d_CRC_error_counter;
103 uint32_t d_required_symbols;
107 uint64_t d_last_valid_preamble;
108 uint32_t d_symbol_duration_ms;
109 uint32_t d_TOW_at_Preamble_ms;
110 uint32_t d_TOW_at_current_symbol_ms;
113 bool d_flag_frame_sync;
114 bool d_flag_preamble;
116 bool d_flag_valid_word;
117 bool d_sent_tlm_failed_msg;
118 bool Flag_valid_word;
127 #endif // GNSS_SDR_BEIDOU_B1I_TELEMETRY_DECODER_GS_H void set_satellite(const Gnss_Satellite &satellite)
Set satellite PRN.
void set_channel(int channel)
Set receiver's channel.
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.
~beidou_b1i_telemetry_decoder_gs()
Class destructor.
Interface of a BeiDou DNAV Data message decoder.
Class that contains all the configuration parameters for generic telemetry decoder block...
This interface represents a GNSS block.
Interface of the Gnss_Satellite class.
This class represents a GNSS satellite.
This class decodes a BeiDou D1 NAV Data message.
This class implements a block that decodes the BeiDou DNAV data.