26 #ifndef GNSS_SDR_PCPS_ACQUISITION_FPGA_H 27 #define GNSS_SDR_PCPS_ACQUISITION_FPGA_H 48 using pcps_acquisition_fpga_sptr = std::shared_ptr<pcps_acquisition_fpga>;
50 pcps_acquisition_fpga_sptr pcps_make_acquisition_fpga(
Acq_Conf_Fpga* conf_, uint32_t acq_buff_num, std::vector<std::pair<uint32_t, uint32_t>>& downsampling_filter_specs, uint32_t& max_FFT_size);
73 d_gnss_synchro = p_gnss_synchro;
79 inline uint32_t
mag()
const 122 d_channel_fsm = std::move(channel_fsm);
132 d_threshold = threshold;
141 d_doppler_max = doppler_max;
142 d_acquisition_fpga->set_doppler_max(doppler_max);
151 d_doppler_step = doppler_step;
152 d_acquisition_fpga->set_doppler_step(doppler_step);
172 friend pcps_acquisition_fpga_sptr pcps_make_acquisition_fpga(
Acq_Conf_Fpga* conf, uint32_t acq_buff_num, std::vector<std::pair<uint32_t, uint32_t>>& downsampling_filter_specs, uint32_t& max_FFT_size);
173 explicit pcps_acquisition_fpga(
Acq_Conf_Fpga* conf, uint32_t acq_buff_num, std::vector<std::pair<uint32_t, uint32_t>>& downsampling_filter_specs, uint32_t& max_FFT_size);
175 void send_negative_acquisition();
176 void send_positive_acquisition();
177 void acquisition_core(uint32_t num_doppler_bins, uint32_t doppler_step, int32_t doppler_min);
178 float first_vs_second_peak_statistic(uint32_t& indext, int32_t& doppler, uint32_t num_doppler_bins, int32_t doppler_max, int32_t doppler_step);
180 std::shared_ptr<Fpga_Acquisition> d_acquisition_fpga;
181 std::weak_ptr<ChannelFsm> d_channel_fsm;
187 uint64_t d_sample_counter;
192 float d_test_statistics;
193 float d_doppler_step2;
194 float d_doppler_center_step_two;
196 int32_t d_doppler_center;
199 uint32_t d_doppler_index;
201 uint32_t d_doppler_step;
202 uint32_t d_doppler_max;
203 uint32_t d_num_doppler_bins;
204 uint32_t d_total_block_exp;
205 uint32_t d_num_doppler_bins_step2;
206 uint32_t d_max_num_acqs;
215 #endif // GNSS_SDR_PCPS_ACQUISITION_FPGA_H Class that contains all the configuration parameters for generic acquisition block based on the PCPS ...
void reset_acquisition()
This function triggers a HW reset of the FPGA PL.
void set_threshold(float threshold)
Set statistics threshold of PCPS algorithm.
void set_doppler_center(int32_t doppler_center)
Set Doppler center frequency for the grid search. It will refresh the Doppler grid.
Highly optimized FPGA vector correlator class.
void set_local_code()
Sets local code for PCPS acquisition algorithm.
void stop_acquisition()
stop the acquisition and the other FPGA modules.
void set_channel(uint32_t channel)
Set acquisition channel unique ID.
Interface of the State Machine for channel.
void set_doppler_step(uint32_t doppler_step)
Set Doppler steps for the grid search.
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro)
Set acquisition/tracking common Gnss_Synchro object pointer to exchange synchronization data between ...
void set_doppler_max(uint32_t doppler_max)
Set maximum Doppler grid search.
This is the class that contains the information that is shared by the processing blocks.
void set_state(int32_t state)
If set to 1, ensures that acquisition starts at the first available sample.
This class implements a Parallel Code Phase Search Acquisition that uses the FPGA.
void set_active(bool active)
Starts acquisition algorithm, turning from standby mode to active mode.
~pcps_acquisition_fpga()=default
Destructor.
void init()
Initializes acquisition algorithm.
void set_channel_fsm(std::weak_ptr< ChannelFsm > channel_fsm)
Set channel fsm associated to this acquisition instance.
uint32_t mag() const
Returns the maximum peak of grid search.