18#ifndef GNSS_SDR_GNSS_SATELLITE_H
19#define GNSS_SDR_GNSS_SATELLITE_H
60 std::string
what_block(
const std::string& system_, uint32_t PRN_);
63 const std::set<std::string> system_set = {
"GPS",
"Glonass",
"SBAS",
"Galileo",
"Beidou",
"QZSS"};
64 const std::map<std::string, std::string> satelliteSystem = {{
"GPS",
"G"}, {
"Glonass",
"R"}, {
"SBAS",
"S"}, {
"Galileo",
"E"}, {
"Beidou",
"C"}, {
"QZSS",
"J"}};
65 void set_system(
const std::string& system);
66 void set_PRN(uint32_t PRN);
67 void set_block(
const std::string& system_, uint32_t PRN_);
69 void set_rf_link(int32_t rf_link_);
Gnss_Satellite(const std::string &system_, uint32_t PRN_)
Concrete GNSS satellite Constructor.
Gnss_Satellite & operator=(Gnss_Satellite &&other) noexcept
Move assignment operator.
std::string what_block(const std::string &system_, uint32_t PRN_)
Gets the block of a given satellite.
~Gnss_Satellite()=default
Default Destructor.
Gnss_Satellite(Gnss_Satellite &&other) noexcept
Move constructor.
int32_t get_rf_link() const
Gets the satellite's rf link.
std::string get_system_short() const
Gets the satellite system {"G", "R", "SBAS", "E", "C", "J"}.
void update_PRN(uint32_t PRN)
Updates the PRN Number when information is decoded, only applies to GLONASS GNAV messages.
Gnss_Satellite & operator=(const Gnss_Satellite &) noexcept
Copy assignment operator.
uint32_t get_PRN() const
Gets satellite's PRN.
friend std::ostream & operator<<(std::ostream &, const Gnss_Satellite &)
operator<< for pretty printing
Gnss_Satellite()=default
Default Constructor.
Gnss_Satellite(const Gnss_Satellite &other) noexcept
Copy constructor.
std::string get_system() const
Gets the satellite system {"GPS", "Glonass", "SBAS", "Galileo", "Beidou", "QZSS"}.
std::string get_block() const
Gets the satellite block. If GPS, returns {"IIA", "IIR", "IIR-M", "IIF"}.
friend bool operator==(const Gnss_Satellite &, const Gnss_Satellite &)
operator== for comparison