Satellite ("sat"), consisting of GNSS and satellite number, suitable for indexing and sorting.
More...
#include <gnss.hpp>
|
| 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.
|
|
uint16_t | id_ = 0x0000 |
| Internal representation of Gnss+SvNr.
|
Satellite ("sat"), consisting of GNSS and satellite number, suitable for indexing and sorting.
Definition at line 330 of file gnss.hpp.
◆ 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] | gnss | GNSS |
[in] | svnr | Satellite 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] | str | The string ("G03", "R22", "C12", ...) |
◆ 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 |
◆ operator==()
bool fpsdk::common::gnss::Sat::operator== |
( |
const Sat & | rhs | ) |
const |
|
inline |
◆ operator!=()
bool fpsdk::common::gnss::Sat::operator!= |
( |
const Sat & | rhs | ) |
const |
|
inline |
◆ id_
uint16_t fpsdk::common::gnss::Sat::id_ = 0x0000 |
The documentation for this struct was generated from the following file:
- fpsdk_common/include/fpsdk_common/gnss.hpp