17 #ifndef GNSS_SDR_BEIDOU_B3I_TELEMETRY_DECODER_GS_H 18 #define GNSS_SDR_BEIDOU_B3I_TELEMETRY_DECODER_GS_H 24 #include <boost/circular_buffer.hpp> 25 #include <gnuradio/types.h> 37 using beidou_b3i_telemetry_decoder_gs_sptr =
38 gnss_shared_ptr<beidou_b3i_telemetry_decoder_gs>;
40 beidou_b3i_telemetry_decoder_gs_sptr beidou_b3i_make_telemetry_decoder_gs(
53 void reset()
override;
58 int general_work(
int noutput_items, gr_vector_int &ninput_items,
59 gr_vector_const_void_star &input_items,
60 gr_vector_void_star &output_items)
override;
63 friend beidou_b3i_telemetry_decoder_gs_sptr beidou_b3i_make_telemetry_decoder_gs(
69 void decode_subframe(
float *symbols,
double cn0);
70 void decode_word(int32_t word_counter,
const float *enc_word_symbols,
71 int32_t *dec_word_symbols);
72 void decode_bch15_11_01(
const int32_t *bits, std::array<int32_t, 15> &decbits);
75 std::array<int32_t, BEIDOU_DNAV_PREAMBLE_LENGTH_SYMBOLS> d_preamble_samples{};
76 std::array<float, BEIDOU_DNAV_PREAMBLE_PERIOD_SYMBOLS> d_subframe_symbols{};
79 boost::circular_buffer<float> d_symbol_history;
86 std::unique_ptr<Tlm_CRC_Stats> d_Tlm_CRC_Stats;
88 std::string d_dump_filename;
89 std::ofstream d_dump_file;
91 uint64_t d_sample_counter;
92 uint64_t d_preamble_index;
93 uint32_t d_required_symbols;
97 int32_t d_CRC_error_counter;
98 int32_t d_symbols_per_preamble;
99 int32_t d_samples_per_preamble;
100 int32_t d_preamble_period_samples;
103 uint64_t d_last_valid_preamble;
104 uint32_t d_symbol_duration_ms;
105 uint32_t d_TOW_at_Preamble_ms;
106 uint32_t d_TOW_at_current_symbol_ms;
109 bool d_flag_frame_sync;
110 bool d_flag_preamble;
111 bool d_flag_valid_word;
112 bool d_sent_tlm_failed_msg;
116 bool d_enable_navdata_monitor;
117 bool d_dump_crc_stats;
124 #endif // GNSS_SDR_BEIDOU_B3I_TELEMETRY_DECODER_GS_H Common base class for telemetry decoder GNU Radio implementations.
~beidou_b3i_telemetry_decoder_gs() override
Class destructor.
Interface of a BeiDou DNAV Data message decoder.
Class that contains all the configuration parameters for generic telemetry decoder block...
This class implements a block that decodes the BeiDou DNAV data.
This class represents a GNSS satellite.
Base class for telemetry decoder GNU Radio blocks.
Class for storage of decoded navigation messages.
This class decodes a BeiDou D1 NAV Data message.
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) override
This is where all signal processing takes place.
void set_satellite(const Gnss_Satellite &satellite) override
Set satellite PRN.
void set_channel(int channel) override
Set receiver's channel.