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

This class represents a GNSS flow graph. More...

#include <gnss_flowgraph.h>

Public Member Functions

 GNSSFlowgraph (std::shared_ptr< ConfigurationInterface > configuration, std::shared_ptr< Concurrent_Queue< pmt::pmt_t >> queue)
 Constructor that initializes the receiver flow graph. More...
 
 ~GNSSFlowgraph ()
 Destructor. More...
 
void start ()
 Start the flow graph. More...
 
void stop ()
 Stop the flow graph. More...
 
void connect ()
 Connects the defined blocks in the flow graph. More...
 
void disconnect ()
 Disconnect the blocks in the flow graph. More...
 
void wait ()
 Wait for a flowgraph to complete. More...
 
void acquisition_manager (unsigned int who)
 Manage satellite acquisition. More...
 
void apply_action (unsigned int who, unsigned int what)
 Applies an action to the flow graph. More...
 
void set_configuration (const std::shared_ptr< ConfigurationInterface > &configuration)
 Set flow graph configuratiob. More...
 
bool connected () const
 
bool running () const
 
bool send_telemetry_msg (const pmt::pmt_t &msg)
 Sends a GNU Radio asynchronous message from telemetry to PVT. More...
 
std::shared_ptr< PvtInterfaceget_pvt ()
 Returns a smart pointer to the PVT object. More...
 
void priorize_satellites (const std::vector< std::pair< int, Gnss_Satellite >> &visible_satellites)
 Priorize visible satellites in the specified vector. More...
 

Detailed Description

This class represents a GNSS flow graph.

It contains a signal source, a signal conditioner, a set of channels, a PVT and an output filter.

Definition at line 65 of file gnss_flowgraph.h.

Constructor & Destructor Documentation

◆ GNSSFlowgraph()

GNSSFlowgraph::GNSSFlowgraph ( std::shared_ptr< ConfigurationInterface configuration,
std::shared_ptr< Concurrent_Queue< pmt::pmt_t >>  queue 
)

Constructor that initializes the receiver flow graph.

◆ ~GNSSFlowgraph()

GNSSFlowgraph::~GNSSFlowgraph ( )

Destructor.

Member Function Documentation

◆ acquisition_manager()

void GNSSFlowgraph::acquisition_manager ( unsigned int  who)

Manage satellite acquisition.

Parameters
[in]whoChannel ID

◆ apply_action()

void GNSSFlowgraph::apply_action ( unsigned int  who,
unsigned int  what 
)

Applies an action to the flow graph.

Parameters
[in]whoWho generated the action
[in]whatWhat is the action. 0: acquisition failed; 1: acquisition success; 2: tracking lost

◆ connect()

void GNSSFlowgraph::connect ( )

Connects the defined blocks in the flow graph.

Signal Source > Signal conditioner > Channels >> Observables >> PVT > Output filter

◆ disconnect()

void GNSSFlowgraph::disconnect ( )

Disconnect the blocks in the flow graph.

◆ get_pvt()

std::shared_ptr<PvtInterface> GNSSFlowgraph::get_pvt ( )
inline

Returns a smart pointer to the PVT object.

Definition at line 149 of file gnss_flowgraph.h.

◆ priorize_satellites()

void GNSSFlowgraph::priorize_satellites ( const std::vector< std::pair< int, Gnss_Satellite >> &  visible_satellites)

Priorize visible satellites in the specified vector.

◆ send_telemetry_msg()

bool GNSSFlowgraph::send_telemetry_msg ( const pmt::pmt_t &  msg)

Sends a GNU Radio asynchronous message from telemetry to PVT.

It is used to assist the receiver with external ephemeris data

◆ set_configuration()

void GNSSFlowgraph::set_configuration ( const std::shared_ptr< ConfigurationInterface > &  configuration)

Set flow graph configuratiob.

◆ start()

void GNSSFlowgraph::start ( )

Start the flow graph.

◆ stop()

void GNSSFlowgraph::stop ( )

Stop the flow graph.

◆ wait()

void GNSSFlowgraph::wait ( )

Wait for a flowgraph to complete.

Flowgraphs complete when either (1) all blocks indicate that they are done, or (2) after stop() has been called to request shutdown.


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