GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
Public Member Functions | Friends | List of all members
pcps_opencl_acquisition_cc Class Reference

This class implements a Parallel Code Phase Search Acquisition. More...

#include <pcps_opencl_acquisition_cc.h>

Inheritance diagram for pcps_opencl_acquisition_cc:

Public Member Functions

 ~pcps_opencl_acquisition_cc ()
 Default destructor. More...
 
void set_gnss_synchro (Gnss_Synchro *p_gnss_synchro)
 Set acquisition/tracking common Gnss_Synchro object pointer to exchange synchronization data between acquisition and tracking blocks. More...
 
uint32_t mag () const
 Returns the maximum peak of grid search. More...
 
void init ()
 Initializes acquisition algorithm. More...
 
void set_local_code (std::complex< float > *code)
 Sets local code for PCPS acquisition algorithm. More...
 
void set_active (bool active)
 Starts acquisition algorithm, turning from standby mode to active mode. More...
 
void set_state (int state)
 If set to 1, ensures that acquisition starts at the first available sample. More...
 
void set_channel (uint32_t channel)
 Set acquisition channel unique ID. More...
 
void set_channel_fsm (std::weak_ptr< ChannelFsm > channel_fsm)
 Set channel fsm associated to this acquisition instance. More...
 
void set_threshold (float threshold)
 Set statistics threshold of PCPS algorithm. More...
 
void set_doppler_max (uint32_t doppler_max)
 Set maximum Doppler grid search. More...
 
void set_doppler_step (uint32_t doppler_step)
 Set Doppler steps for the grid search. More...
 
bool opencl_ready () const
 
void acquisition_core_volk ()
 
void acquisition_core_opencl ()
 
int general_work (int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
 Parallel Code Phase Search Acquisition signal processing. More...
 

Friends

pcps_opencl_acquisition_cc_sptr pcps_make_opencl_acquisition_cc (uint32_t sampled_ms, uint32_t max_dwells, uint32_t doppler_max, int64_t fs_in, int samples_per_ms, int samples_per_code, bool bit_transition_flag, bool dump, const std::string &dump_filename, bool enable_monitor_output)
 

Detailed Description

This class implements a Parallel Code Phase Search Acquisition.

Check An Open Source Galileo E1 Software Receiver, Algorithm 1, for a pseudocode description of this implementation.

Definition at line 83 of file pcps_opencl_acquisition_cc.h.

Constructor & Destructor Documentation

◆ ~pcps_opencl_acquisition_cc()

pcps_opencl_acquisition_cc::~pcps_opencl_acquisition_cc ( )

Default destructor.

Member Function Documentation

◆ general_work()

int pcps_opencl_acquisition_cc::general_work ( int  noutput_items,
gr_vector_int &  ninput_items,
gr_vector_const_void_star &  input_items,
gr_vector_void_star &  output_items 
)

Parallel Code Phase Search Acquisition signal processing.

◆ init()

void pcps_opencl_acquisition_cc::init ( )

Initializes acquisition algorithm.

◆ mag()

uint32_t pcps_opencl_acquisition_cc::mag ( ) const
inline

Returns the maximum peak of grid search.

Definition at line 104 of file pcps_opencl_acquisition_cc.h.

◆ set_active()

void pcps_opencl_acquisition_cc::set_active ( bool  active)
inline

Starts acquisition algorithm, turning from standby mode to active mode.

Parameters
active- bool that activates/deactivates the block.

Definition at line 125 of file pcps_opencl_acquisition_cc.h.

◆ set_channel()

void pcps_opencl_acquisition_cc::set_channel ( uint32_t  channel)
inline

Set acquisition channel unique ID.

Parameters
channel- receiver channel.

Definition at line 141 of file pcps_opencl_acquisition_cc.h.

◆ set_channel_fsm()

void pcps_opencl_acquisition_cc::set_channel_fsm ( std::weak_ptr< ChannelFsm channel_fsm)
inline

Set channel fsm associated to this acquisition instance.

Definition at line 149 of file pcps_opencl_acquisition_cc.h.

◆ set_doppler_max()

void pcps_opencl_acquisition_cc::set_doppler_max ( uint32_t  doppler_max)
inline

Set maximum Doppler grid search.

Parameters
doppler_max- Maximum Doppler shift considered in the grid search [Hz].

Definition at line 168 of file pcps_opencl_acquisition_cc.h.

◆ set_doppler_step()

void pcps_opencl_acquisition_cc::set_doppler_step ( uint32_t  doppler_step)
inline

Set Doppler steps for the grid search.

Parameters
doppler_step- Frequency bin of the search grid [Hz].

Definition at line 177 of file pcps_opencl_acquisition_cc.h.

◆ set_gnss_synchro()

void pcps_opencl_acquisition_cc::set_gnss_synchro ( Gnss_Synchro p_gnss_synchro)
inline

Set acquisition/tracking common Gnss_Synchro object pointer to exchange synchronization data between acquisition and tracking blocks.

Parameters
p_gnss_synchroSatellite information shared by the processing blocks.

Definition at line 96 of file pcps_opencl_acquisition_cc.h.

◆ set_local_code()

void pcps_opencl_acquisition_cc::set_local_code ( std::complex< float > *  code)

Sets local code for PCPS acquisition algorithm.

Parameters
code- Pointer to the PRN code.

◆ set_state()

void pcps_opencl_acquisition_cc::set_state ( int  state)

If set to 1, ensures that acquisition starts at the first available sample.

Parameters
state- int=1 forces start of acquisition

◆ set_threshold()

void pcps_opencl_acquisition_cc::set_threshold ( float  threshold)
inline

Set statistics threshold of PCPS algorithm.

Parameters
threshold- Threshold for signal detection (check Navitec2012, Algorithm 1, for a definition of this threshold).

Definition at line 159 of file pcps_opencl_acquisition_cc.h.


The documentation for this class was generated from the following file: