37 #ifndef GNSS_SDR_PCPS_TONG_ACQUISITION_CC_H 38 #define GNSS_SDR_PCPS_TONG_ACQUISITION_CC_H 45 #include <gnuradio/block.h> 46 #include <gnuradio/gr_complex.h> 61 using pcps_tong_acquisition_cc_sptr = gnss_shared_ptr<pcps_tong_acquisition_cc>;
63 pcps_tong_acquisition_cc_sptr pcps_tong_make_acquisition_cc(
65 uint32_t tong_init_val,
66 uint32_t tong_max_val,
67 uint32_t tong_max_dwells);
88 d_gnss_synchro = p_gnss_synchro;
94 inline uint32_t
mag()
const override 134 d_channel_fsm = std::move(channel_fsm);
140 int general_work(
int noutput_items, gr_vector_int& ninput_items,
141 gr_vector_const_void_star& input_items,
142 gr_vector_void_star& output_items)
override;
145 friend pcps_tong_acquisition_cc_sptr
146 pcps_tong_make_acquisition_cc(
148 uint32_t tong_init_val,
149 uint32_t tong_max_val,
150 uint32_t tong_max_dwells);
154 uint32_t tong_init_val,
155 uint32_t tong_max_val,
156 uint32_t tong_max_dwells);
158 void calculate_magnitudes(gr_complex* fft_begin, int32_t doppler_shift, int32_t doppler_offset);
160 std::string d_satellite_str;
163 std::ofstream d_dump_file;
167 uint64_t d_sample_counter;
171 float d_test_statistics;
174 uint32_t d_dwell_count;
175 const uint32_t d_tong_init_val;
176 const uint32_t d_tong_max_val;
177 const uint32_t d_tong_max_dwells;
178 uint32_t d_tong_count;
179 const uint32_t d_fft_size;
180 uint32_t d_num_doppler_bins;
181 uint32_t d_code_phase;
185 std::weak_ptr<ChannelFsm> d_channel_fsm;
186 std::unique_ptr<gnss_fft_complex_fwd> d_fft_if;
187 std::unique_ptr<gnss_fft_complex_rev> d_ifft;
189 std::vector<std::vector<gr_complex>> d_grid_doppler_wipeoffs;
190 std::vector<std::vector<float>> d_grid_data;
191 std::vector<gr_complex> d_fft_codes;
192 std::vector<float> d_magnitude;
198 #endif // GNSS_SDR_PCPS_TONG_ACQUISITION_CC_H Helper file for FFT interface.
Header file of the interface to an acquisition implementation GNSS block.
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
Parallel Code Phase Search Acquisition signal processing.
~pcps_tong_acquisition_cc()
Default destructor.
Class that contains all the configuration parameters for generic acquisition block based on the PCPS ...
void set_channel(uint32_t channel) override
Set acquisition channel unique ID.
Interface of the State Machine for channel.
void set_channel_fsm(std::weak_ptr< ChannelFsm > channel_fsm) override
Set channel fsm associated to this acquisition instance.
void set_local_code(std::complex< float > *code) override
Sets local code for TONG acquisition algorithm.
This is the class that contains the information that is shared by the processing blocks.
This class implements a Parallel Code Phase Search Acquisition with Tong algorithm.
void set_active(bool active) override
Starts acquisition algorithm, turning from standby mode to active mode.
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro) override
Set acquisition/tracking common Gnss_Synchro object pointer to exchange synchronization data between ...
uint32_t mag() const override
Returns the maximum peak of grid search.
This abstract class represents an interface to an acquisition GNSS block.
Interface of the Gnss_Synchro class.