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"};
64 const std::map<std::string, std::string> satelliteSystem = {{
"GPS",
"G"}, {
"Glonass",
"R"}, {
"SBAS",
"S"}, {
"Galileo",
"E"}, {
"Beidou",
"C"}};
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_);
79 #endif // GNSS_SDR_GNSS_SATELLITE_H friend std::ostream & operator<<(std::ostream &, const Gnss_Satellite &)
operator<< for pretty printing
Gnss_Satellite()=default
Default Constructor.
This class represents a GNSS satellite.
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
std::string get_system() const
Gets the satellite system {"GPS", "GLONASS", "SBAS", "Galileo", "Beidou"}.
std::string get_system_short() const
Gets the satellite system {"G", "R", "SBAS", "E", "C"}.
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 & operator=(const Gnss_Satellite &) noexcept
Copy assignment operator.
int32_t get_rf_link() const
Gets the satellite's rf link.
uint32_t get_PRN() const
Gets satellite's PRN.
void update_PRN(uint32_t PRN)
Updates the PRN Number when information is decoded, only applies to GLONASS GNAV messages.