Fixposition SDK 0.0.0-heads/main-0-g408dc89
Collection of c++ libraries and apps for use with Fixposition products on Linux
Loading...
Searching...
No Matches
fpsdk::common::gnss::Sat Struct Reference

Satellite ("sat"), consisting of GNSS and satellite number, suitable for indexing and sorting. More...

#include <gnss.hpp>

Public Member Functions

 Sat ()=default
 Default ctor: invalid satellite (INVALID_SAT)
 Sat (const Gnss gnss, const SvNr svnr)
 Ctor: from GNSS and satellite number.
 Sat (const char *str)
 Ctor: from string.
Gnss GetGnss () const
 Get GNSS.
SvNr GetSvNr () const
 Get satellite number.
const char * GetStr () const
 Stringify satellite.
bool operator< (const Sat &rhs) const
 Less-than operator.
bool operator== (const Sat &rhs) const
 Equal operator.
bool operator!= (const Sat &rhs) const
 Not equal operator.

Public Attributes

uint16_t id_ = 0x0000
 Internal representation of Gnss+SvNr.

Detailed Description

Satellite ("sat"), consisting of GNSS and satellite number, suitable for indexing and sorting.

Definition at line 330 of file gnss.hpp.

Constructor & Destructor Documentation

◆ Sat() [1/2]

fpsdk::common::gnss::Sat::Sat ( const Gnss gnss,
const SvNr svnr )
inline

Ctor: from GNSS and satellite number.

Note
This does not do any range checking and it's up to the user to provide a valid satellite ID for the given GNSS.
Parameters
[in]gnssGNSS
[in]svnrSatellite number

Definition at line 345 of file gnss.hpp.

References id_.

◆ Sat() [2/2]

fpsdk::common::gnss::Sat::Sat ( const char * str)

Ctor: from string.

Note
Invalid strings create an INVALID_SAT
Parameters
[in]strThe string ("G03", "R22", "C12", ...)

Member Function Documentation

◆ GetGnss()

Gnss fpsdk::common::gnss::Sat::GetGnss ( ) const
inline

Get GNSS.

Returns
the GNSS

Definition at line 361 of file gnss.hpp.

References id_.

◆ GetSvNr()

SvNr fpsdk::common::gnss::Sat::GetSvNr ( ) const
inline

Get satellite number.

Returns
the satellit nuber

Definition at line 368 of file gnss.hpp.

References id_.

◆ GetStr()

const char * fpsdk::common::gnss::Sat::GetStr ( ) const

Stringify satellite.

Returns
a unique string identifying the satellite

◆ operator<()

bool fpsdk::common::gnss::Sat::operator< ( const Sat & rhs) const
inline

Less-than operator.

Definition at line 379 of file gnss.hpp.

References id_, and Sat().

◆ operator==()

bool fpsdk::common::gnss::Sat::operator== ( const Sat & rhs) const
inline

Equal operator.

Definition at line 380 of file gnss.hpp.

References id_, and Sat().

◆ operator!=()

bool fpsdk::common::gnss::Sat::operator!= ( const Sat & rhs) const
inline

Not equal operator.

Definition at line 381 of file gnss.hpp.

References id_, and Sat().

Member Data Documentation

◆ id_

uint16_t fpsdk::common::gnss::Sat::id_ = 0x0000

Internal representation of Gnss+SvNr.

Definition at line 377 of file gnss.hpp.

Referenced by GetGnss(), GetSvNr(), operator!=(), std::hash< fpsdk::common::gnss::Sat >::operator()(), operator<(), operator==(), and Sat().


The documentation for this struct was generated from the following file:
  • fpsdk_common/include/fpsdk_common/gnss.hpp