GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
Gnss_Satellite Class Reference

This class represents a GNSS satellite. More...

#include <gnss_satellite.h>

Public Member Functions

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

Friends

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

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.

Referenced by Gnss_Satellite(), Gnss_Satellite(), operator<<, operator=(), operator=(), and operator==.

◆ 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.

References Gnss_Satellite().

◆ Gnss_Satellite() [4/4]

Gnss_Satellite::Gnss_Satellite ( Gnss_Satellite && other)
noexcept

Move constructor.

References Gnss_Satellite().

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", "QZSS"}.

◆ get_system_short()

std::string Gnss_Satellite::get_system_short ( ) const

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

◆ operator=() [1/2]

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

Copy assignment operator.

References Gnss_Satellite().

◆ operator=() [2/2]

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

Move assignment operator.

References Gnss_Satellite().

◆ 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.

◆ operator<<

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

operator<< for pretty printing

References Gnss_Satellite().

◆ operator==

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

operator== for comparison

References Gnss_Satellite().


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