17 #ifndef GNSS_SDR_GPS_L1_CA_TELEMETRY_DECODER_GS_H 18 #define GNSS_SDR_GPS_L1_CA_TELEMETRY_DECODER_GS_H 26 #include <boost/circular_buffer.hpp> 27 #include <gnuradio/block.h> 28 #include <gnuradio/types.h> 43 using gps_l1_ca_telemetry_decoder_gs_sptr = gnss_shared_ptr<gps_l1_ca_telemetry_decoder_gs>;
45 gps_l1_ca_telemetry_decoder_gs_sptr gps_l1_ca_make_telemetry_decoder_gs(
63 int general_work(
int noutput_items, gr_vector_int &ninput_items,
64 gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
67 friend gps_l1_ca_telemetry_decoder_gs_sptr gps_l1_ca_make_telemetry_decoder_gs(
73 bool gps_word_parityCheck(uint32_t gpsword);
74 bool decode_subframe();
79 std::array<int32_t, GPS_CA_PREAMBLE_LENGTH_BITS> d_preamble_samples{};
81 std::string d_dump_filename;
82 std::ofstream d_dump_file;
84 boost::circular_buffer<float> d_symbol_history;
86 uint64_t d_sample_counter;
87 uint64_t d_preamble_index;
88 uint64_t d_last_valid_preamble;
90 int32_t d_bits_per_preamble;
91 int32_t d_samples_per_preamble;
92 int32_t d_preamble_period_symbols;
93 int32_t d_CRC_error_counter;
96 uint32_t d_required_symbols;
97 uint32_t d_frame_length_symbols;
98 uint32_t d_prev_GPS_frame_4bytes;
99 uint32_t d_max_symbols_without_valid_frame;
101 uint32_t d_TOW_at_Preamble_ms;
102 uint32_t d_TOW_at_current_symbol_ms;
104 bool d_flag_frame_sync;
106 bool d_flag_preamble;
107 bool d_sent_tlm_failed_msg;
108 bool d_flag_PLL_180_deg_phase_locked;
118 #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.
Class that contains all the configuration parameters for generic telemetry decoder block...
This class implements a block that decodes the NAV data defined in IS-GPS-200K.
This interface represents a GNSS block.
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.