34 #ifndef GNSS_SDR_PCPS_ASSISTED_ACQUISITION_CC_H 35 #define GNSS_SDR_PCPS_ASSISTED_ACQUISITION_CC_H 42 #include <gnuradio/block.h> 43 #include <gnuradio/gr_complex.h> 58 using pcps_assisted_acquisition_cc_sptr = gnss_shared_ptr<pcps_assisted_acquisition_cc>;
60 pcps_assisted_acquisition_cc_sptr pcps_make_assisted_acquisition_cc(
const Acq_Conf& conf);
83 d_gnss_synchro = p_gnss_synchro;
89 inline uint32_t
mag()
const override 91 return d_test_statistics;
129 d_channel_fsm = std::move(channel_fsm);
135 int general_work(
int noutput_items, gr_vector_int& ninput_items,
136 gr_vector_const_void_star& input_items,
137 gr_vector_void_star& output_items)
override;
141 void forecast(
int noutput_items, gr_vector_int& ninput_items_required)
override;
143 friend pcps_assisted_acquisition_cc_sptr
144 pcps_make_assisted_acquisition_cc(
const Acq_Conf& conf);
148 void calculate_magnitudes(gr_complex* fft_begin, int32_t doppler_shift, int32_t doppler_offset);
150 int32_t compute_and_accumulate_grid(gr_vector_const_void_star& input_items);
151 float estimate_input_power(gr_vector_const_void_star& input_items)
const;
152 float search_maximum();
153 void get_assistance();
155 void redefine_grid();
157 std::string d_satellite_str;
160 std::ofstream d_dump_file;
164 uint64_t d_sample_counter;
167 float d_test_statistics;
170 uint32_t d_code_phase;
171 const uint32_t d_fft_size;
173 const int32_t d_gnuradio_forecast_samples;
174 int32_t d_doppler_max;
175 int32_t d_doppler_min;
176 int32_t d_num_doppler_points;
178 int32_t d_well_count;
181 bool d_disable_assist;
183 std::weak_ptr<ChannelFsm> d_channel_fsm;
184 std::unique_ptr<gnss_fft_complex_fwd> d_fft_if;
185 std::unique_ptr<gnss_fft_complex_rev> d_ifft;
187 std::vector<std::vector<std::complex<float>>> d_grid_doppler_wipeoffs;
188 std::vector<std::vector<float>> d_grid_data;
189 std::vector<gr_complex> d_fft_codes;
195 #endif // GNSS_SDR_PCPS_ASSISTED_ACQUISITION_CC_H Helper file for FFT interface.
Header file of the interface to an acquisition implementation GNSS block.
Class that contains all the configuration parameters for generic acquisition block based on the PCPS ...
Interface of the State Machine for channel.
This is the class that contains the information that is shared by the processing blocks.
~pcps_assisted_acquisition_cc()
Default destructor.
uint32_t mag() const override
Returns the maximum peak of grid search.
This class implements a Parallel Code Phase Search Acquisition.
void set_local_code(std::complex< float > *code) override
Sets local code for PCPS acquisition algorithm.
void set_channel_fsm(std::weak_ptr< ChannelFsm > channel_fsm) override
Set channel fsm associated to this acquisition instance.
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.
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro) override
Set acquisition/tracking common Gnss_Synchro object pointer to exchange synchronization data between ...
void set_channel(uint32_t channel) override
Set acquisition channel unique ID.
void set_active(bool active) override
Starts acquisition algorithm, turning from standby mode to active mode.
This abstract class represents an interface to an acquisition GNSS block.
Interface of the Gnss_Synchro class.