19 #ifndef GNSS_SDR_GALILEO_E5B_PCPS_ACQUISITION_H 20 #define GNSS_SDR_GALILEO_E5B_PCPS_ACQUISITION_H 26 #include <volk_gnsssdr/volk_gnsssdr_alloc.h> 46 const std::string&
role,
47 unsigned int in_streams,
48 unsigned int out_streams);
58 inline std::string
role()
override 69 return "Galileo_E5b_PCPS_Acquisition";
77 return sizeof(int16_t);
83 void connect(gr::top_block_sptr top_block)
override;
88 void disconnect(gr::top_block_sptr top_block)
override;
113 acquisition_->set_channel(channel_);
121 channel_fsm_ = std::move(channel_fsm);
122 acquisition_->set_channel_fsm(channel_fsm_);
148 void init()
override;
158 signed int mag()
override;
163 void reset()
override;
183 pcps_acquisition_sptr acquisition_;
185 volk_gnsssdr::vector<std::complex<float>> code_;
186 std::weak_ptr<ChannelFsm> channel_fsm_;
191 std::string item_type_;
192 std::string dump_filename_;
200 unsigned int vector_length_;
201 unsigned int code_length_;
202 unsigned int channel_;
203 unsigned int doppler_max_;
204 unsigned int doppler_step_;
205 unsigned int sampled_ms_;
206 unsigned int in_streams_;
207 unsigned int out_streams_;
216 #endif // GNSS_SDR_GALILEO_E5B_PCPS_ACQUISITION_H void disconnect(gr::top_block_sptr top_block) override
Disconnect.
void set_threshold(float threshold) override
Set statistics threshold of PCPS algorithm.
gr::basic_block_sptr get_left_block() override
Get left block.
signed int mag() override
Returns the maximum peak of grid search.
void set_local_code() override
Sets local Galileo E5b code for PCPS acquisition algorithm.
GalileoE5bPcpsAcquisition(const ConfigurationInterface *configuration, const std::string &role, unsigned int in_streams, unsigned int out_streams)
Constructor.
Interface of the State Machine for channel.
void set_doppler_center(int doppler_center) override
Set Doppler center for the grid search.
void reset() override
Restart acquisition algorithm.
void set_resampler_latency(uint32_t latency_samples) override
Sets the resampler latency to account it in the acquisition code delay estimation.
void set_channel(unsigned int channel) override
Set acquisition channel unique ID.
This class implements a Parallel Code Phase Search Acquisition.
std::string implementation() override
Returns "GALILEO_E5b_PCPS_Acquisition".
This abstract class represents an interface to an acquisition GNSS block.
This is the class that contains the information that is shared by the processing blocks.
This abstract class represents an interface to configuration parameters.
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro) override
Set acquisition/tracking common Gnss_Synchro object pointer to efficiently exchange synchronization d...
gr::basic_block_sptr get_right_block() override
Get right block.
void set_doppler_step(unsigned int doppler_step) override
Set Doppler steps for the grid search.
void connect(gr::top_block_sptr top_block) override
Connect.
size_t item_size() override
Returns size of lv_16sc_t.
std::string role() override
Role.
~GalileoE5bPcpsAcquisition()=default
Destructor.
void init() override
Initializes acquisition algorithm.
void set_channel_fsm(std::weak_ptr< ChannelFsm > channel_fsm) override
Set channel fsm associated to this acquisition instance.
void set_doppler_max(unsigned int doppler_max) override
Set maximum Doppler off grid search.
void stop_acquisition() override
Stop running acquisition.
Interface of the Gnss_Synchro class.
void set_state(int state) override
If set to 1, ensures that acquisition starts at the first available sample.