23 #ifndef GNSS_SDR_PCPS_CCCWSR_ACQUISITION_CC_H 24 #define GNSS_SDR_PCPS_CCCWSR_ACQUISITION_CC_H 29 #include <gnuradio/block.h> 30 #include <gnuradio/gr_complex.h> 45 using pcps_cccwsr_acquisition_cc_sptr = gnss_shared_ptr<pcps_cccwsr_acquisition_cc>;
47 pcps_cccwsr_acquisition_cc_sptr pcps_cccwsr_make_acquisition_cc(
52 int32_t samples_per_ms,
53 int32_t samples_per_code,
55 const std::string& dump_filename,
56 bool enable_monitor_output);
77 d_gnss_synchro = p_gnss_synchro;
83 inline uint32_t
mag()
const 98 void set_local_code(std::complex<float>* code_data, std::complex<float>* code_pilot);
131 d_channel_fsm = std::move(channel_fsm);
141 d_threshold = threshold;
150 d_doppler_max = doppler_max;
159 d_doppler_step = doppler_step;
165 int general_work(
int noutput_items, gr_vector_int& ninput_items,
166 gr_vector_const_void_star& input_items,
167 gr_vector_void_star& output_items);
170 friend pcps_cccwsr_acquisition_cc_sptr
171 pcps_cccwsr_make_acquisition_cc(uint32_t sampled_ms, uint32_t max_dwells,
172 uint32_t doppler_max, int64_t fs_in,
173 int32_t samples_per_ms, int32_t samples_per_code,
174 bool dump,
const std::string& dump_filename,
bool enable_monitor_output);
177 uint32_t doppler_max, int64_t fs_in,
178 int32_t samples_per_ms, int32_t samples_per_code,
179 bool dump,
const std::string& dump_filename,
bool enable_monitor_output);
181 void calculate_magnitudes(gr_complex* fft_begin, int32_t doppler_shift,
182 int32_t doppler_offset);
184 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<gr_complex> d_fft_code_data;
191 std::vector<gr_complex> d_fft_code_pilot;
192 std::vector<gr_complex> d_data_correlation;
193 std::vector<gr_complex> d_pilot_correlation;
194 std::vector<gr_complex> d_correlation_plus;
195 std::vector<gr_complex> d_correlation_minus;
196 std::vector<float> d_magnitude;
198 std::ofstream d_dump_file;
199 std::string d_satellite_str;
200 std::string d_dump_filename;
205 uint64_t d_sample_counter;
208 float d_doppler_freq;
211 float d_test_statistics;
214 int32_t d_samples_per_ms;
215 int32_t d_samples_per_code;
216 uint32_t d_doppler_resolution;
217 uint32_t d_doppler_max;
218 uint32_t d_doppler_step;
219 uint32_t d_sampled_ms;
220 uint32_t d_max_dwells;
221 uint32_t d_well_count;
223 uint32_t d_num_doppler_bins;
224 uint32_t d_code_phase;
229 bool d_enable_monitor_output;
235 #endif // GNSS_SDR_PCPS_CCCWSR_ACQUISITION_CC_H Helper file for FFT interface.
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro)
Set acquisition/tracking common Gnss_Synchro object pointer to exchange synchronization data between ...
void set_channel(uint32_t channel)
Set acquisition channel unique ID.
void set_local_code(std::complex< float > *code_data, std::complex< float > *code_pilot)
Sets local code for CCCWSR acquisition algorithm.
void set_doppler_step(uint32_t doppler_step)
Set Doppler steps for the grid search.
Interface of the State Machine for channel.
void set_active(bool active)
Starts acquisition algorithm, turning from standby mode to active mode.
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 Coherent Channel Combining With S...
void set_channel_fsm(std::weak_ptr< ChannelFsm > channel_fsm)
Set channel fsm associated to this acquisition instance.
void set_doppler_max(uint32_t doppler_max)
Set maximum Doppler grid search.
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
Coherent Channel Combining With Sign Recovery Acquisition signal processing.
void init()
Initializes acquisition algorithm.
~pcps_cccwsr_acquisition_cc()
Default destructor.
void set_state(int32_t state)
If set to 1, ensures that acquisition starts at the first available sample.
void set_threshold(float threshold)
Set statistics threshold of CCCWSR algorithm.
uint32_t mag() const
Returns the maximum peak of grid search.
Interface of the Gnss_Synchro class.