17 #ifndef GNSS_SDR_BEIDOU_B3I_TELEMETRY_DECODER_GS_H 18 #define GNSS_SDR_BEIDOU_B3I_TELEMETRY_DECODER_GS_H 26 #include <boost/circular_buffer.hpp> 27 #include <gnuradio/block.h> 28 #include <gnuradio/types.h> 44 using beidou_b3i_telemetry_decoder_gs_sptr =
45 gnss_shared_ptr<beidou_b3i_telemetry_decoder_gs>;
47 beidou_b3i_telemetry_decoder_gs_sptr beidou_b3i_make_telemetry_decoder_gs(
65 int general_work(
int noutput_items, gr_vector_int &ninput_items,
66 gr_vector_const_void_star &input_items,
67 gr_vector_void_star &output_items)
override;
70 friend beidou_b3i_telemetry_decoder_gs_sptr beidou_b3i_make_telemetry_decoder_gs(
76 void decode_subframe(
float *symbols,
double cn0);
77 void decode_word(int32_t word_counter,
const float *enc_word_symbols,
78 int32_t *dec_word_symbols);
79 void decode_bch15_11_01(
const int32_t *bits, std::array<int32_t, 15> &decbits);
82 std::array<int32_t, BEIDOU_DNAV_PREAMBLE_LENGTH_SYMBOLS> d_preamble_samples{};
83 std::array<float, BEIDOU_DNAV_PREAMBLE_PERIOD_SYMBOLS> d_subframe_symbols{};
86 boost::circular_buffer<float> d_symbol_history;
93 std::unique_ptr<Tlm_CRC_Stats> d_Tlm_CRC_Stats;
95 std::string d_dump_filename;
96 std::ofstream d_dump_file;
98 uint64_t d_sample_counter;
99 uint64_t d_preamble_index;
100 uint32_t d_required_symbols;
104 int32_t d_CRC_error_counter;
105 int32_t d_symbols_per_preamble;
106 int32_t d_samples_per_preamble;
107 int32_t d_preamble_period_samples;
110 uint64_t d_last_valid_preamble;
111 uint32_t d_symbol_duration_ms;
112 uint32_t d_TOW_at_Preamble_ms;
113 uint32_t d_TOW_at_current_symbol_ms;
116 bool d_flag_frame_sync;
117 bool d_flag_preamble;
118 bool d_flag_valid_word;
119 bool d_sent_tlm_failed_msg;
123 bool d_enable_navdata_monitor;
124 bool d_dump_crc_stats;
130 #endif // GNSS_SDR_BEIDOU_B3I_TELEMETRY_DECODER_GS_H ~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.
Class that computes the telemetry CRC statistics.
This interface represents a GNSS block.
Interface of the Gnss_Satellite class.
This class represents a GNSS satellite.
void set_channel(int channel)
Set receiver's channel.
void set_satellite(const Gnss_Satellite &satellite)
Set satellite PRN.
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.