17 #ifndef GNSS_SDR_GPS_L1_CA_TELEMETRY_DECODER_GS_H 18 #define GNSS_SDR_GPS_L1_CA_TELEMETRY_DECODER_GS_H 28 #include <boost/circular_buffer.hpp> 29 #include <gnuradio/block.h> 30 #include <gnuradio/types.h> 46 using gps_l1_ca_telemetry_decoder_gs_sptr = gnss_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)
override;
70 friend gps_l1_ca_telemetry_decoder_gs_sptr gps_l1_ca_make_telemetry_decoder_gs(
76 void check_tlm_separation();
77 void frame_synchronization(
const Gnss_Synchro ¤t_gs);
78 bool is_PLL_180_deg_phase_locked();
79 bool gps_word_parityCheck(uint32_t gpsword);
80 bool decode_subframe(
double cn0,
bool flag_invert);
85 std::unique_ptr<Tlm_CRC_Stats> d_Tlm_CRC_Stats;
87 std::array<int32_t, GPS_CA_PREAMBLE_LENGTH_BITS> d_preamble_samples{};
89 std::string d_dump_filename;
90 std::ofstream d_dump_file;
92 boost::circular_buffer<float> d_symbol_history;
94 uint64_t d_sample_counter;
95 uint64_t d_preamble_index;
96 uint64_t d_last_valid_preamble;
98 int32_t d_bits_per_preamble;
99 int32_t d_samples_per_preamble;
100 int32_t d_preamble_period_symbols;
101 int32_t d_CRC_error_counter;
104 uint32_t d_required_symbols;
105 uint32_t d_prev_GPS_frame_4bytes;
106 uint32_t d_max_symbols_without_valid_frame;
108 uint32_t d_TOW_at_Preamble_ms;
109 uint32_t d_TOW_at_current_symbol_ms;
111 bool d_flag_frame_sync;
112 bool d_flag_preamble;
113 bool d_sent_tlm_failed_msg;
114 bool d_flag_PLL_180_deg_phase_locked;
119 bool d_enable_navdata_monitor;
120 bool d_dump_crc_stats;
126 #endif // GNSS_SDR_GPS_L1_CA_TELEMETRY_DECODER_GS_H class that stores both the receiver time, relative to the receiver start and the GNSS time (absolute)...
Defines system parameters for GPS L1 C/A signal and NAV data.
void set_channel(int channel)
Set receiver's channel.
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 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-200M.
This is the class that contains the information that is shared by the processing blocks.
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.
Interface of a GPS NAV Data message decoder.
This class decodes a GPS NAV Data message as described in IS-GPS-200M.
Class for storage of decoded navigation messages.
void set_satellite(const Gnss_Satellite &satellite)
Set satellite PRN.
Interface of the Gnss_Synchro class.