20 #ifndef GNSS_SDR_GPS_L1_CA_TELEMETRY_DECODER_GS_H 21 #define GNSS_SDR_GPS_L1_CA_TELEMETRY_DECODER_GS_H 27 #include <boost/circular_buffer.hpp> 28 #include <gnuradio/block.h> 29 #include <gnuradio/types.h> 34 #if GNURADIO_USES_STD_POINTERS 37 #include <boost/shared_ptr.hpp> 42 #if GNURADIO_USES_STD_POINTERS 43 using gps_l1_ca_telemetry_decoder_gs_sptr = std::shared_ptr<gps_l1_ca_telemetry_decoder_gs>;
45 using gps_l1_ca_telemetry_decoder_gs_sptr = boost::shared_ptr<gps_l1_ca_telemetry_decoder_gs>;
48 gps_l1_ca_telemetry_decoder_gs_sptr gps_l1_ca_make_telemetry_decoder_gs(
66 int general_work(
int noutput_items, gr_vector_int &ninput_items,
67 gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
70 friend gps_l1_ca_telemetry_decoder_gs_sptr gps_l1_ca_make_telemetry_decoder_gs(
76 bool gps_word_parityCheck(uint32_t gpsword);
77 bool decode_subframe();
82 std::array<int32_t, GPS_CA_PREAMBLE_LENGTH_BITS> d_preamble_samples{};
84 std::string d_dump_filename;
85 std::ofstream d_dump_file;
87 boost::circular_buffer<float> d_symbol_history;
89 uint64_t d_sample_counter;
90 uint64_t d_preamble_index;
91 uint64_t d_last_valid_preamble;
93 int32_t d_bits_per_preamble;
94 int32_t d_samples_per_preamble;
95 int32_t d_preamble_period_symbols;
96 int32_t d_CRC_error_counter;
99 uint32_t d_required_symbols;
100 uint32_t d_frame_length_symbols;
101 uint32_t d_prev_GPS_frame_4bytes;
102 uint32_t d_max_symbols_without_valid_frame;
104 uint32_t d_TOW_at_Preamble_ms;
105 uint32_t d_TOW_at_current_symbol_ms;
107 bool d_flag_frame_sync;
109 bool d_flag_preamble;
110 bool d_sent_tlm_failed_msg;
111 bool d_flag_PLL_180_deg_phase_locked;
116 #endif // GNSS_SDR_GPS_L1_CA_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.
Defines system parameters for GPS L1 C/A signal and NAV data.
void set_channel(int channel)
Set receiver's channel.
This class implements a block that decodes the NAV data defined in IS-GPS-200K.
Interface of the Gnss_Satellite class.
This class represents a GNSS satellite.
Interface of a GPS NAV Data message decoder.
This class decodes a GPS NAV Data message as described in IS-GPS-200K.
void set_satellite(const Gnss_Satellite &satellite)
Set satellite PRN.
Interface of the Gnss_Synchro class.