20 #ifndef GNSS_SDR_BEIDOU_B3I_TELEMETRY_DECODER_GS_H 21 #define GNSS_SDR_BEIDOU_B3I_TELEMETRY_DECODER_GS_H 25 #include <boost/circular_buffer.hpp> 26 #include <gnuradio/block.h> 27 #include <gnuradio/types.h> 32 #if GNURADIO_USES_STD_POINTERS 35 #include <boost/shared_ptr.hpp> 40 #if GNURADIO_USES_STD_POINTERS 41 using beidou_b3i_telemetry_decoder_gs_sptr =
42 std::shared_ptr<beidou_b3i_telemetry_decoder_gs>;
44 using beidou_b3i_telemetry_decoder_gs_sptr =
45 boost::shared_ptr<beidou_b3i_telemetry_decoder_gs>;
48 beidou_b3i_telemetry_decoder_gs_sptr beidou_b3i_make_telemetry_decoder_gs(
66 int general_work(
int noutput_items, gr_vector_int &ninput_items,
67 gr_vector_const_void_star &input_items,
68 gr_vector_void_star &output_items);
71 friend beidou_b3i_telemetry_decoder_gs_sptr beidou_b3i_make_telemetry_decoder_gs(
77 void decode_subframe(
float *symbols);
78 void decode_word(int32_t word_counter,
const float *enc_word_symbols,
79 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{};
84 std::array<float, BEIDOU_DNAV_PREAMBLE_PERIOD_SYMBOLS> d_subframe_symbols{};
87 boost::circular_buffer<float> d_symbol_history;
94 std::string d_dump_filename;
95 std::ofstream d_dump_file;
97 uint64_t d_sample_counter;
98 uint64_t d_preamble_index;
99 uint32_t d_required_symbols;
103 int32_t d_CRC_error_counter;
104 int32_t d_symbols_per_preamble;
105 int32_t d_samples_per_preamble;
106 int32_t d_preamble_period_samples;
109 uint64_t d_last_valid_preamble;
110 uint32_t d_symbol_duration_ms;
111 uint32_t d_TOW_at_Preamble_ms;
112 uint32_t d_TOW_at_current_symbol_ms;
115 bool d_flag_frame_sync;
116 bool d_flag_preamble;
117 bool d_flag_valid_word;
118 bool d_sent_tlm_failed_msg;
119 bool Flag_valid_word;
123 #endif // GNSS_SDR_BEIDOU_B3I_TELEMETRY_DECODER_GS_H 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.
Interface of a BeiDou DNAV Data message decoder.
This class implements a block that decodes the BeiDou DNAV data.
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.
This class decodes a BeiDou D1 NAV Data message.
~beidou_b3i_telemetry_decoder_gs()
Class destructor.