19 #ifndef GNSS_SDR_BEIDOU_B1I_TELEMETRY_DECODER_GS_H 20 #define GNSS_SDR_BEIDOU_B1I_TELEMETRY_DECODER_GS_H 29 #include <boost/circular_buffer.hpp> 30 #include <gnuradio/block.h> 31 #include <gnuradio/types.h> 46 using beidou_b1i_telemetry_decoder_gs_sptr = gnss_shared_ptr<beidou_b1i_telemetry_decoder_gs>;
48 beidou_b1i_telemetry_decoder_gs_sptr beidou_b1i_make_telemetry_decoder_gs(
68 int general_work(
int noutput_items, gr_vector_int &ninput_items,
69 gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
override;
72 friend beidou_b1i_telemetry_decoder_gs_sptr beidou_b1i_make_telemetry_decoder_gs(
78 void decode_subframe(
float *symbols,
double cn0);
79 void decode_word(int32_t word_counter,
const float *enc_word_symbols, int32_t *dec_word_symbols);
80 void decode_bch15_11_01(
const int32_t *bits, std::array<int32_t, 15> &decbits);
83 std::array<int32_t, BEIDOU_DNAV_PREAMBLE_LENGTH_SYMBOLS> d_preamble_samples{};
85 std::array<float, BEIDOU_DNAV_PREAMBLE_PERIOD_SYMBOLS> d_subframe_symbols{};
88 boost::circular_buffer<float> d_symbol_history;
94 std::unique_ptr<Tlm_CRC_Stats> d_Tlm_CRC_Stats;
98 std::string d_dump_filename;
99 std::ofstream d_dump_file;
101 uint64_t d_sample_counter;
102 uint64_t d_preamble_index;
105 int32_t d_symbols_per_preamble;
106 int32_t d_samples_per_preamble;
107 int32_t d_preamble_period_samples;
108 int32_t d_CRC_error_counter;
109 uint32_t d_required_symbols;
113 uint64_t d_last_valid_preamble;
114 uint32_t d_symbol_duration_ms;
115 uint32_t d_TOW_at_Preamble_ms;
116 uint32_t d_TOW_at_current_symbol_ms;
119 bool d_flag_frame_sync;
120 bool d_flag_preamble;
122 bool d_flag_valid_word;
123 bool d_sent_tlm_failed_msg;
127 bool d_enable_navdata_monitor;
128 bool d_dump_crc_stats;
134 #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.
Interface of a BeiDou DNAV Data message decoder.
~beidou_b1i_telemetry_decoder_gs() override
Class destructor.
Class that contains all the configuration parameters for generic telemetry decoder block...
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.
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.
Class for storage of decoded navigation messages.
This class decodes a BeiDou D1 NAV Data message.
This class implements a block that decodes the BeiDou DNAV data.