21 #ifndef GNSS_SDR_GLONASS_L1_CA_TELEMETRY_DECODER_GS_H 22 #define GNSS_SDR_GLONASS_L1_CA_TELEMETRY_DECODER_GS_H 29 #include <boost/circular_buffer.hpp> 30 #include <gnuradio/block.h> 31 #include <gnuradio/types.h> 36 #if GNURADIO_USES_STD_POINTERS 39 #include <boost/shared_ptr.hpp> 45 #if GNURADIO_USES_STD_POINTERS 46 using glonass_l1_ca_telemetry_decoder_gs_sptr = std::shared_ptr<glonass_l1_ca_telemetry_decoder_gs>;
48 using glonass_l1_ca_telemetry_decoder_gs_sptr = boost::shared_ptr<glonass_l1_ca_telemetry_decoder_gs>;
51 glonass_l1_ca_telemetry_decoder_gs_sptr glonass_l1_ca_make_telemetry_decoder_gs(
74 int general_work(
int noutput_items, gr_vector_int &ninput_items,
75 gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
78 friend glonass_l1_ca_telemetry_decoder_gs_sptr glonass_l1_ca_make_telemetry_decoder_gs(
84 const std::array<uint16_t, GLONASS_GNAV_PREAMBLE_LENGTH_BITS> d_preambles_bits{GLONASS_GNAV_PREAMBLE};
86 const int32_t d_symbols_per_preamble = GLONASS_GNAV_PREAMBLE_LENGTH_SYMBOLS;
88 void decode_string(
const double *symbols, int32_t frame_length);
93 std::array<int32_t, GLONASS_GNAV_PREAMBLE_LENGTH_SYMBOLS> d_preambles_symbols{};
96 boost::circular_buffer<Gnss_Synchro> d_symbol_history;
103 std::string d_dump_filename;
104 std::ofstream d_dump_file;
106 double d_preamble_time_samples;
107 double d_TOW_at_current_symbol;
111 uint64_t d_sample_counter;
112 uint64_t d_preamble_index;
115 int32_t d_CRC_error_counter;
118 bool d_flag_frame_sync;
120 bool d_flag_preamble;
122 bool Flag_valid_word;
126 #endif // GNSS_SDR_GLONASS_L1_CA_TELEMETRY_DECODER_GS_H Defines system parameters for GLONASS L1 C/A signal and NAV data.
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.
void set_channel(int32_t channel)
Set receiver's channel.
Interface of the Gnss_Satellite class.
This class implements a block that decodes the GNAV data defined in GLONASS ICD v5.1.
This class represents a GNSS satellite.
~glonass_l1_ca_telemetry_decoder_gs()
Class destructor.
Interface of a GLONASS GNAV Data message decoder as described in GLONASS ICD (Edition 5...
void set_satellite(const Gnss_Satellite &satellite)
Set satellite PRN.
This class decodes a GLONASS GNAV Data message as described in GLONASS ICD (Edition 5...
Interface of the Gnss_Synchro class.