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

This class represents a GNSS satellite. More...

#include <gnss_satellite.h>

Public Member Functions

 Gnss_Satellite ()=default
 Default Constructor. More...
 
 Gnss_Satellite (const std::string &system_, uint32_t PRN_)
 Concrete GNSS satellite Constructor. More...
 
 ~Gnss_Satellite ()=default
 Default Destructor. More...
 
 Gnss_Satellite (const Gnss_Satellite &other) noexcept
 Copy constructor. More...
 
Gnss_Satelliteoperator= (const Gnss_Satellite &) noexcept
 Copy assignment operator. More...
 
 Gnss_Satellite (Gnss_Satellite &&other) noexcept
 Move constructor. More...
 
Gnss_Satelliteoperator= (Gnss_Satellite &&other) noexcept
 Move assignment operator. More...
 
void update_PRN (uint32_t PRN)
 Updates the PRN Number when information is decoded, only applies to GLONASS GNAV messages. More...
 
uint32_t get_PRN () const
 Gets satellite's PRN. More...
 
int32_t get_rf_link () const
 Gets the satellite's rf link. More...
 
std::string get_system () const
 Gets the satellite system {"GPS", "GLONASS", "SBAS", "Galileo", "Beidou"}. More...
 
std::string get_system_short () const
 Gets the satellite system {"G", "R", "SBAS", "E", "C"}. More...
 
std::string get_block () const
 Gets the satellite block. If GPS, returns {"IIA", "IIR", "IIR-M", "IIF"}. More...
 
std::string what_block (const std::string &system_, uint32_t PRN_)
 Gets the block of a given satellite. More...
 

Friends

bool operator== (const Gnss_Satellite &, const Gnss_Satellite &)
 operator== for comparison More...
 
std::ostream & operator<< (std::ostream &, const Gnss_Satellite &)
 operator<< for pretty printing More...
 

Detailed Description

This class represents a GNSS satellite.

It contains information about the space vehicles currently operational of GPS, Glonass, SBAS and Galileo constellations.

Definition at line 39 of file gnss_satellite.h.

Constructor & Destructor Documentation

◆ Gnss_Satellite() [1/4]

Gnss_Satellite::Gnss_Satellite ( )
default

Default Constructor.

◆ Gnss_Satellite() [2/4]

Gnss_Satellite::Gnss_Satellite ( const std::string &  system_,
uint32_t  PRN_ 
)

Concrete GNSS satellite Constructor.

◆ ~Gnss_Satellite()

Gnss_Satellite::~Gnss_Satellite ( )
default

Default Destructor.

◆ Gnss_Satellite() [3/4]

Gnss_Satellite::Gnss_Satellite ( const Gnss_Satellite other)
noexcept

Copy constructor.

◆ Gnss_Satellite() [4/4]

Gnss_Satellite::Gnss_Satellite ( Gnss_Satellite &&  other)
noexcept

Move constructor.

Member Function Documentation

◆ get_block()

std::string Gnss_Satellite::get_block ( ) const

Gets the satellite block. If GPS, returns {"IIA", "IIR", "IIR-M", "IIF"}.

◆ get_PRN()

uint32_t Gnss_Satellite::get_PRN ( ) const

Gets satellite's PRN.

◆ get_rf_link()

int32_t Gnss_Satellite::get_rf_link ( ) const

Gets the satellite's rf link.

◆ get_system()

std::string Gnss_Satellite::get_system ( ) const

Gets the satellite system {"GPS", "GLONASS", "SBAS", "Galileo", "Beidou"}.

◆ get_system_short()

std::string Gnss_Satellite::get_system_short ( ) const

Gets the satellite system {"G", "R", "SBAS", "E", "C"}.

◆ operator=() [1/2]

Gnss_Satellite& Gnss_Satellite::operator= ( const Gnss_Satellite )
noexcept

Copy assignment operator.

◆ operator=() [2/2]

Gnss_Satellite& Gnss_Satellite::operator= ( Gnss_Satellite &&  other)
noexcept

Move assignment operator.

◆ update_PRN()

void Gnss_Satellite::update_PRN ( uint32_t  PRN)

Updates the PRN Number when information is decoded, only applies to GLONASS GNAV messages.

◆ what_block()

std::string Gnss_Satellite::what_block ( const std::string &  system_,
uint32_t  PRN_ 
)

Gets the block of a given satellite.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  ,
const Gnss_Satellite  
)
friend

operator<< for pretty printing

◆ operator==

bool operator== ( const Gnss_Satellite ,
const Gnss_Satellite  
)
friend

operator== for comparison


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