Fixposition SDK 0.0.0-heads/main-0-g90a51ff
Collection of c++ libraries and apps for use with Fixposition products
|
GNSS types and utilities. More...
Typedefs | |
using | SvNr = uint8_t |
Satellite number (within a GNSS) | |
using | Sat = uint16_t |
Satellite ("sat"), consisting of GNSS and satellite number, suitable for indexing and sorting. | |
using | SatSig = uint32_t |
Satellite plus frequency band and signal ("satsig"), suitable for indexing and sorting. | |
Enumerations | |
enum class | GnssFixType : uint8_t { UNKNOWN = 0 , NOFIX = 1 , DRONLY = 2 , TIME = 3 , SPP_2D = 4 , SPP_3D = 5 , SPP_3D_DR = 6 , RTK_FLOAT = 7 , RTK_FIXED = 8 , RTK_FLOAT_DR = 9 , RTK_FIXED_DR = 10 } |
GNSS fix types. More... | |
enum class | Gnss : uint8_t { UNKNOWN = 0 , GPS = 'G' , SBAS = 'S' , GAL = 'E' , BDS = 'C' , QZSS = 'J' , GLO = 'R' , NAVIC = 'I' } |
GNSS. More... | |
enum class | Signal : uint8_t { UNKNOWN = 0 , BDS_B1C , BDS_B1I , BDS_B2A , BDS_B2I , GAL_E1 , GAL_E5A , GAL_E5B , GLO_L1OF , GLO_L2OF , GPS_L1CA , GPS_L2C , GPS_L5 , QZSS_L1CA , QZSS_L1S , QZSS_L2C , QZSS_L5 , SBAS_L1CA , NAVIC_L5A } |
Signals. More... | |
enum class | Band : uint8_t { UNKNOWN = 0 , L1 , L2 , L5 } |
Frequency bands. More... | |
Functions | |
const char * | GnssFixTypeStr (const GnssFixType fix_type) |
Stringify GNSS fix type. | |
const char * | GnssStr (const Gnss gnss) |
Stringify GNSS. | |
const char * | SignalStr (const Signal signal) |
Stringify signal. | |
const char * | BandStr (const Band band) |
Stringify frequency band. | |
Band | SignalToBand (const Signal signal) |
Get frequency band for a signal. | |
static constexpr Sat | GnssSvNrToSat (const Gnss gnss, const SvNr svnr) |
Get "sat" from GNSS and satellite ID. | |
static constexpr Gnss | SatToGnss (const Sat sat) |
Get GNSS from "sat". | |
static constexpr SvNr | SatToSvNr (const Sat sat) |
Get satellite nr from "sat". | |
static constexpr SatSig | GnssSvNrBandSignalToSatSig (const Gnss gnss, const SvNr svnr, const Band band, const Signal signal) |
Get "satsig" from components. | |
static constexpr Gnss | SatSigToGnss (const SatSig satsig) |
Get GNSS from "satsig". | |
static constexpr SvNr | SatSigToSvNr (const SatSig satsig) |
Get satellite nr from "satsig". | |
static constexpr Band | SatSigToBand (const SatSig satsig) |
Get frequency band from "satsig". | |
static constexpr Signal | SatSigToSignal (const SatSig satsig) |
Get signal from "satsig". | |
const char * | SatStr (const Sat sat) |
Stringify satellite. | |
Sat | StrSat (const char *str) |
Satellite from string. | |
Gnss | UbxGnssIdToGnss (const uint8_t gnssId) |
Convert UBX gnssId to GNSS. | |
Sat | UbxGnssIdSvIdToSat (const uint8_t gnssId, const uint8_t svId) |
Convert UBX gnssId and svId to satellite. | |
Signal | UbxGnssIdSigIdToSignal (const uint8_t gnssId, const uint8_t sigId) |
Convert UBX gnssId and sigId to signal. | |
Variables | |
static constexpr SvNr | NUM_GPS = 32 |
Number of GPS satellites (G01-G32, PRN) | |
static constexpr SvNr | NUM_SBAS = 39 |
Number of SBAS satellites (S20-S59, PRN - 100) | |
static constexpr SvNr | NUM_GAL = 36 |
Number of Galileo satellites (E01-E36, PRN) | |
static constexpr SvNr | NUM_BDS = 63 |
Number of BeiDou satellites (C01-C63, PRN) | |
static constexpr SvNr | NUM_QZSS = 10 |
Number of QZSS satellites (J01-J10, PRN - 192) | |
static constexpr SvNr | NUM_GLO = 32 |
Number of GLONASS satellites (R01-R32, slot) | |
static constexpr SvNr | NUM_NAVIC = 14 |
Number of NavIC satellites (I01-I14, PRN) | |
static constexpr SvNr | FIRST_GPS = 1 |
First GPS satellite number. | |
static constexpr SvNr | FIRST_SBAS = 20 |
First SBAS satellite number. | |
static constexpr SvNr | FIRST_GAL = 1 |
First Galileo satellite number. | |
static constexpr SvNr | FIRST_BDS = 1 |
First BeiDou satellite number. | |
static constexpr SvNr | FIRST_QZSS = 1 |
First QZSS satellite number. | |
static constexpr SvNr | FIRST_GLO = 1 |
First GLONASS satellite number. | |
static constexpr SvNr | FIRST_NAVIC = 1 |
First NavIC satellite number. | |
static constexpr SvNr | INAVLID_SVNR = 0 |
Invalid satellite number (in any GNSS) | |
static constexpr Sat | INVALID_SAT = GnssSvNrToSat(Gnss::UNKNOWN, INAVLID_SVNR) |
Invalid "sat". | |
static constexpr SatSig | INVALID_SATSIG |
Invalid "satsig"". | |
GNSS types and utilities.
using fpsdk::common::gnss::SvNr = uint8_t |
using fpsdk::common::gnss::Sat = uint16_t |
using fpsdk::common::gnss::SatSig = uint32_t |
|
strong |
GNSS fix types.
|
strong |
|
strong |
Signals.
|
strong |
const char * fpsdk::common::gnss::GnssFixTypeStr | ( | const GnssFixType | fix_type | ) |
Stringify GNSS fix type.
[in] | fix_type | The fix type |
const char * fpsdk::common::gnss::GnssStr | ( | const Gnss | gnss | ) |
Stringify GNSS.
[in] | gnss | The GNSS |
const char * fpsdk::common::gnss::SignalStr | ( | const Signal | signal | ) |
Stringify signal.
[in] | signal | The signal |
const char * fpsdk::common::gnss::BandStr | ( | const Band | band | ) |
Stringify frequency band.
[in] | band | The frequency band |
Get frequency band for a signal.
[in] | signal | The signal |
|
staticconstexpr |
Get "sat" from GNSS and satellite ID.
[in] | gnss | GNSS |
[in] | svnr | Satellite ID |
Definition at line 196 of file gnss.hpp.
References fpsdk::common::types::EnumToVal().
|
staticconstexpr |
Get "satsig" from components.
[in] | gnss | GNSS |
[in] | svnr | Satellite ID |
[in] | band | Frequency band |
[in] | signal | Signal |
Definition at line 251 of file gnss.hpp.
References fpsdk::common::types::EnumToVal().
const char * fpsdk::common::gnss::SatStr | ( | const Sat | sat | ) |
Stringify satellite.
[in] | sat | The satellite |
Sat fpsdk::common::gnss::StrSat | ( | const char * | str | ) |
Satellite from string.
[in] | str | The string ("G03", "R22", "C12", ...) |
Gnss fpsdk::common::gnss::UbxGnssIdToGnss | ( | const uint8_t | gnssId | ) |
Convert UBX gnssId to GNSS.
[in] | gnssId | UBX gnssId |
Sat fpsdk::common::gnss::UbxGnssIdSvIdToSat | ( | const uint8_t | gnssId, |
const uint8_t | svId ) |
Convert UBX gnssId and svId to satellite.
[in] | gnssId | UBX gnssId |
[in] | svId | UBX svId |
Signal fpsdk::common::gnss::UbxGnssIdSigIdToSignal | ( | const uint8_t | gnssId, |
const uint8_t | sigId ) |
Convert UBX gnssId and sigId to signal.
[in] | gnssId | UBX gnssId |
[in] | sigId | UBX sigId |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
Invalid "satsig"".