![]() |
0.5.0
|
Frequency definition for different satellite systems. More...
Public Types | |
| enum | Enum : uint8_t { Enum_G01 , Enum_G02 , Enum_G05 , Enum_E01 , Enum_E05 , Enum_E06 , Enum_E07 , Enum_E08 , Enum_R01 , Enum_R02 , Enum_R03 , Enum_R04 , Enum_R06 , Enum_B01 , Enum_B02 , Enum_B05 , Enum_B06 , Enum_B07 , Enum_B08 , Enum_J01 , Enum_J02 , Enum_J05 , Enum_J06 , Enum_I05 , Enum_I09 , Enum_S01 , Enum_S05 , Enum_COUNT , Enum_None } |
| Satellite System enumeration with continuous range. Not usable as a mask. More... | |
Public Member Functions | |
| size_t | count () const |
| Counts the amount of frequencies contained. | |
| constexpr | Frequency ()=default |
| Default Constructor. | |
| Frequency (Enum enumeration) | |
| Implicit Constructor from Enum type. | |
| constexpr | Frequency (Frequency_ type) |
| Implicit Constructor from Value type. | |
| double | getFrequency (int8_t num) const |
| Get the frequency in [Hz]. | |
| Frequency | getL1 () const |
| Returns the L1 Frequency for each constellation. | |
| SatelliteSystem | getSatSys () const |
| Get the satellite system for which this frequency is defined. | |
| bool | isFirstFrequency (const Frequency &filter) const |
| Checks wether the frequency is the first in the filter (per system) | |
| constexpr | operator bool ()=delete |
| Prevent usage: if(...) | |
| constexpr | operator Frequency_ () const |
| Allow switch(Frequency_(type)) and comparisons. | |
| operator std::string () const | |
| std::string conversion operator | |
| constexpr | operator uint64_t () const |
| int conversion operator | |
| constexpr bool | operator< (const Frequency &rhs) const |
| Less than comparison (needed for map) | |
| constexpr Frequency & | operator= (Frequency_ v) |
| Assignment operator from Value type. | |
| Enum | toEnumeration () const |
| Returns a continuous enumeration of the object. | |
| std::vector< Frequency > | toVector () const |
| Get a vector representation of the specified Frequency. | |
Static Public Member Functions | |
| static Frequency | fromEnum (Enum enumeration) |
| Constructs a new object from continuous enumeration. | |
| static Frequency | fromString (const std::string &typeString) |
| Construct new object from std::string. | |
| static constexpr std::array< Frequency, 27 > | GetAll () |
| Returns a list with all possible frequencies. | |
| static double | GetFrequency (Frequency freq, int8_t num) |
| Get the frequency in [Hz]. | |
| static Frequency | GetL1 (Frequency freq) |
| Returns the L1 Frequency for each constellation. | |
| static SatelliteSystem | GetSatelliteSystemForFrequency (Frequency freq) |
| Get the Time System of the specified Frequency. | |
| static bool | IsFirstFrequency (const Frequency &freq, const Frequency &filter) |
| Checks wether the given frequency is the first in the filter (per system) | |
| static Enum | ToEnumeration (Frequency freq) |
| Get the continuous enumeration of the specified frequency. | |
| static std::vector< Frequency > | ToVector (Frequency freq) |
| Get a vector representation of the specified Frequency. | |
Private Attributes | |
| Frequency_ | value |
| Internal value. | |
Friends | |
| constexpr bool | operator== (const Frequency &lhs, const Frequency &rhs) |
| Equal compares values. | |
Frequency definition for different satellite systems.
Definition at line 58 of file Frequency.hpp.
| enum NAV::Frequency::Enum : uint8_t |
Satellite System enumeration with continuous range. Not usable as a mask.
| Enumerator | |
|---|---|
| Enum_G01 | GPS L1 (1575.42 MHz). |
| Enum_G02 | GPS L2 (1227.6 MHz). |
| Enum_G05 | GPS L5 (1176.45 MHz). |
| Enum_E01 | Galileo, "E1" (1575.42 MHz). |
| Enum_E05 | Galileo E5a (1176.45 MHz). |
| Enum_E06 | Galileo E6 (1278.75 MHz). |
| Enum_E07 | Galileo E5b (1207.14 MHz). |
| Enum_E08 | Galileo E5 (E5a + E5b) (1191.795MHz). |
| Enum_R01 | GLONASS, "G1" (1602 MHZ). |
| Enum_R02 | GLONASS, "G2" (1246 MHz). |
| Enum_R03 | GLONASS, "G3" (1202.025 MHz). |
| Enum_R04 | GLONASS, "G1a" (1600.995 MHZ). |
| Enum_R06 | GLONASS, "G2a" (1248.06 MHz). |
| Enum_B01 | Beidou B1 (1575.42 MHz). |
| Enum_B02 | Beidou B1-2 (1561.098 MHz). |
| Enum_B05 | Beidou B2a (1176.45 MHz). |
| Enum_B06 | Beidou B3 (1268.52 MHz). |
| Enum_B07 | Beidou B2b (1207.14 MHz). |
| Enum_B08 | Beidou B2 (B2a + B2b) (1191.795MHz). |
| Enum_J01 | QZSS L1 (1575.42 MHz). |
| Enum_J02 | QZSS L2 (1227.6 MHz). |
| Enum_J05 | QZSS L5 (1176.45 MHz). |
| Enum_J06 | QZSS L6 / LEX (1278.75 MHz). |
| Enum_I05 | IRNSS L5 (1176.45 MHz). |
| Enum_I09 | IRNSS S (2492.028 MHz). |
| Enum_S01 | SBAS L1 (1575.42 MHz). |
| Enum_S05 | SBAS L5 (1176.45 MHz). |
| Enum_COUNT | Count variable. |
| Enum_None | No Frequency. |
Definition at line 62 of file Frequency.hpp.
|
constexprdefault |
Default Constructor.
|
inlineconstexpr |
Implicit Constructor from Value type.
| [in] | type | Value type to construct from |
Definition at line 100 of file Frequency.hpp.
|
inline |
Implicit Constructor from Enum type.
| [in] | enumeration | Enum type to construct from |
Definition at line 106 of file Frequency.hpp.
|
nodiscard |
Counts the amount of frequencies contained.
Definition at line 362 of file Frequency.cpp.
|
static |
Constructs a new object from continuous enumeration.
| [in] | enumeration | Continuous enumeration of the frequency |
Definition at line 55 of file Frequency.cpp.
|
static |
Construct new object from std::string.
| [in] | typeString | String representation of the frequency |
Definition at line 22 of file Frequency.cpp.
|
inlinestaticconstexpr |
Returns a list with all possible frequencies.
Definition at line 183 of file Frequency.hpp.
|
static |
Get the frequency in [Hz].
| [in] | freq | Frequency to get the value for |
| [in] | num | Frequency number. Only used for GLONASS G1 and G2 |
Definition at line 250 of file Frequency.cpp.
|
inlinenodiscard |
Get the frequency in [Hz].
| [in] | num | Frequency number. Only used for GLONASS G1 and G2 |
Definition at line 164 of file Frequency.hpp.
Returns the L1 Frequency for each constellation.
| [in] | freq | Frequency to get the value for |
Definition at line 317 of file Frequency.cpp.
|
inlinenodiscard |
Returns the L1 Frequency for each constellation.
Definition at line 174 of file Frequency.hpp.
|
static |
Get the Time System of the specified Frequency.
| [in] | freq | Frequency to get the satellite system for |
Definition at line 240 of file Frequency.cpp.
|
inlinenodiscard |
Get the satellite system for which this frequency is defined.
Definition at line 152 of file Frequency.hpp.
Checks wether the given frequency is the first in the filter (per system)
| [in] | freq | Single Frequency |
| [in] | filter | Filter of multiple frequencies |
Definition at line 480 of file Frequency.cpp.
|
nodiscard |
Checks wether the frequency is the first in the filter (per system)
| [in] | filter | Filter of multiple frequencies |
Definition at line 485 of file Frequency.cpp.
|
explicitconstexprdelete |
Prevent usage: if(...)
|
inlineexplicitconstexpr |
Allow switch(Frequency_(type)) and comparisons.
Definition at line 135 of file Frequency.hpp.
|
explicit |
std::string conversion operator
Definition at line 120 of file Frequency.cpp.
|
inlineexplicitconstexpr |
int conversion operator
Definition at line 141 of file Frequency.hpp.
|
inlineconstexpr |
Less than comparison (needed for map)
| [in] | rhs | Right hand side of the operator |
Definition at line 132 of file Frequency.hpp.
|
inlineconstexpr |
Assignment operator from Value type.
| [in] | v | Value type to construct from |
Definition at line 121 of file Frequency.hpp.
|
static |
Get the continuous enumeration of the specified frequency.
| [in] | freq | Frequency to get the continuous enumeration for |
Definition at line 396 of file Frequency.cpp.
|
nodiscard |
Returns a continuous enumeration of the object.
Definition at line 460 of file Frequency.cpp.
Get a vector representation of the specified Frequency.
| [in] | freq | Frequency to get the vector for |
Definition at line 465 of file Frequency.cpp.
|
nodiscard |
Get a vector representation of the specified Frequency.
Definition at line 475 of file Frequency.cpp.
Equal compares values.
| [in] | lhs | Left-hand side of the operator |
| [in] | rhs | Right-hand side of the operator |
Definition at line 394 of file Frequency.hpp.
|
private |
Internal value.
Definition at line 219 of file Frequency.hpp.