19#ifndef GNSS_SDR_BASE_PCPS_ACQUISITION_CUSTOM_H
20#define GNSS_SDR_BASE_PCPS_ACQUISITION_CUSTOM_H
26#include <gnuradio/blocks/stream_to_vector.h>
27#include <volk_gnsssdr/volk_gnsssdr_alloc.h>
43 virtual float calculate_threshold(
const Acq_Conf& acq_parameters)
const = 0;
49 float calculate_threshold(
const Acq_Conf& acq_parameters)
const override;
55 float calculate_threshold(
const Acq_Conf& acq_parameters)
const override;
61 explicit ThresholdComputeQuickSync(uint32_t folding_factor);
63 float calculate_threshold(
const Acq_Conf& acq_parameters)
const override;
66 const uint32_t folding_factor_;
76 const std::string& role,
77 unsigned int in_streams,
78 unsigned int out_streams,
80 double code_length_chips,
81 unsigned int ms_per_code,
82 bool use_stream_to_vector,
84 uint32_t max_sampled_ms = std::numeric_limits<uint32_t>::max());
86 ~BasePcpsAcquisitionCustom() =
default;
88 inline std::string role()
override {
return role_; }
90 inline size_t item_size()
override {
return item_size_; }
92 void connect(gr::top_block_sptr top_block)
override;
93 void disconnect(gr::top_block_sptr top_block)
override;
94 gr::basic_block_sptr get_left_block()
override;
95 gr::basic_block_sptr get_right_block()
override;
117 signed int mag()
override;
129 void set_resampler_latency(uint32_t )
override {};
138 bool is_type_gr_complex()
const {
return is_type_gr_complex_; }
141 acquisition_impl_interface_sptr acquisition_cc_;
143 unsigned int channel_;
144 volk_gnsssdr::vector<std::complex<float>> code_;
150 virtual void code_gen_complex_sampled(own::span<std::complex<float>> dest, uint32_t prn, int32_t sampling_freq) = 0;
152 gr::blocks::stream_to_vector::sptr stream_to_vector_;
153 const std::string role_;
154 const bool is_type_gr_complex_;
155 const size_t item_size_;
156 const bool use_stream_to_vector_;
Header file of the interface to an acquisition implementation GNSS block.
Interface of the State Machine for channel.
This abstract class represents an interface to an acquisition GNSS block.
void reset() override
Restart acquisition algorithm.
void stop_acquisition() override
Stop running acquisition.
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro) override
Set acquisition/tracking common Gnss_Synchro object pointer to efficiently exchange synchronization d...
void set_channel_fsm(std::weak_ptr< ChannelFsm > channel_fsm) override
Set channel fsm associated to this acquisition instance.
signed int mag() override
Returns the maximum peak of grid search.
void set_channel(unsigned int channel) override
Set acquisition channel unique ID.
void set_local_code() override
Sets local code.
This abstract class represents an interface to configuration parameters.
This is the class that contains the information that is shared by the processing blocks.
Interface of the Gnss_Synchro class.
This class implements a Parallel Code Phase Search Acquisition.