19#ifndef GNSS_SDR_BASE_PCPS_ACQUISITION_H
20#define GNSS_SDR_BASE_PCPS_ACQUISITION_H
27#include <gnuradio/blocks/float_to_complex.h>
28#include <volk_gnsssdr/volk_gnsssdr_alloc.h>
48 const std::string& role,
49 unsigned int in_streams,
50 unsigned int out_streams,
53 double code_length_chips,
54 uint32_t ms_per_code);
56 ~BasePcpsAcquisition() =
default;
58 inline std::string role()
override
63 inline size_t item_size()
override
65 return acq_parameters_.it_size;
68 void connect(gr::top_block_sptr top_block)
override;
69 void disconnect(gr::top_block_sptr top_block)
override;
70 gr::basic_block_sptr get_left_block()
override;
71 gr::basic_block_sptr get_right_block()
override;
85 acquisition_->set_channel(channel);
93 acquisition_->set_channel_fsm(std::move(channel_fsm));
104 signed int mag()
override;
130 virtual void code_gen_complex_sampled(own::span<std::complex<float>> dest, uint32_t prn, int32_t sampling_freq) = 0;
133 gr::blocks::float_to_complex::sptr float_to_complex_;
134 complex_byte_to_float_x2_sptr cbyte_to_float_x2_;
136 const std::string role_;
137 const unsigned int vector_length_;
138 const unsigned int code_length_;
139 volk_gnsssdr::vector<std::complex<float>> code_;
140 pcps_acquisition_sptr acquisition_;
Class that contains all the configuration parameters for generic acquisition block based on the PCPS ...
Interface of the State Machine for channel.
This abstract class represents an interface to an acquisition GNSS block.
void set_doppler_center(int doppler_center) override
Set Doppler center for the grid search.
void set_channel(unsigned int channel) override
Set acquisition channel unique ID.
void set_local_code() override
Sets local code.
void set_resampler_latency(uint32_t latency_samples) override
Sets the resampler latency to account it in the acquisition code delay estimation.
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro) override
Set acquisition/tracking common Gnss_Synchro object pointer to efficiently exchange synchronization d...
signed int mag() override
Returns the maximum peak of grid search.
void stop_acquisition() override
Stop running acquisition.
void set_channel_fsm(std::weak_ptr< ChannelFsm > channel_fsm) override
Set channel fsm associated to this acquisition instance.
void reset() override
Restart acquisition algorithm.
This abstract class represents an interface to configuration parameters.
This is the class that contains the information that is shared by the processing blocks.
Adapts a std::complex<signed char> stream into two 16-bits (short) streams.
Interface of the Gnss_Synchro class.
This class implements a Parallel Code Phase Search Acquisition.