These values can be used to specify a bitmask for controlling enabled GNSS constellations. The bit locations are equal to the values set by SatelliteType for each constellation.
For example, the mask 0x32 enables GPS, Galileo, and BeiDou. You can create that mask with the SATELLITE_TYPE_MASK_*
constants:
or by calling the ToBitMask(SatelliteType) helper function:
◆ ToBitMask() [1/2]
template<typename... Args>
constexpr uint32_t point_one::fusion_engine::messages::ToBitMask |
( |
SatelliteType |
first, |
|
|
Args... |
others |
|
) |
| |
|
constexpr |
Convert two or more SatelliteType values to a bitmask.
For example:
generates the following bitmask:
- Template Parameters
-
- Parameters
-
first | The first value. |
others | One or more additional values. |
- Returns
- The corresponding bitmask.
Definition at line 193 of file signal_defs.h.
◆ ToBitMask() [2/2]
constexpr uint32_t point_one::fusion_engine::messages::ToBitMask |
( |
SatelliteType |
type | ) |
|
|
constexpr |
Convert a SatelliteType to a corresponding constellation control bitmask value.
For example:
generates the following bitmask:
- Parameters
-
type | The desired constellation. |
- Returns
- The corresponding bitmask.
Definition at line 164 of file signal_defs.h.
◆ SATELLITE_TYPE_MASK_ALL
constexpr uint32_t point_one::fusion_engine::messages::SATELLITE_TYPE_MASK_ALL = 0xFFFFFFFF |
|
staticconstexpr |
◆ SATELLITE_TYPE_MASK_BEIDOU
constexpr uint32_t point_one::fusion_engine::messages::SATELLITE_TYPE_MASK_BEIDOU |
|
staticconstexpr |
Initial value:=
(1UL << static_cast<uint8_t>(SatelliteType::BEIDOU))
Definition at line 131 of file signal_defs.h.
◆ SATELLITE_TYPE_MASK_GALILEO
constexpr uint32_t point_one::fusion_engine::messages::SATELLITE_TYPE_MASK_GALILEO |
|
staticconstexpr |
Initial value:=
(1UL << static_cast<uint8_t>(SatelliteType::GALILEO))
Definition at line 129 of file signal_defs.h.
◆ SATELLITE_TYPE_MASK_GLONASS
constexpr uint32_t point_one::fusion_engine::messages::SATELLITE_TYPE_MASK_GLONASS |
|
staticconstexpr |
Initial value:=
(1UL << static_cast<uint8_t>(SatelliteType::GLONASS))
Definition at line 125 of file signal_defs.h.
◆ SATELLITE_TYPE_MASK_GPS
constexpr uint32_t point_one::fusion_engine::messages::SATELLITE_TYPE_MASK_GPS |
|
staticconstexpr |
Initial value:=
(1UL << static_cast<uint8_t>(SatelliteType::GPS))
Definition at line 123 of file signal_defs.h.
◆ SATELLITE_TYPE_MASK_IRNSS
constexpr uint32_t point_one::fusion_engine::messages::SATELLITE_TYPE_MASK_IRNSS |
|
staticconstexpr |
Initial value:=
(1UL << static_cast<uint8_t>(SatelliteType::IRNSS))
Definition at line 139 of file signal_defs.h.
◆ SATELLITE_TYPE_MASK_LEO
constexpr uint32_t point_one::fusion_engine::messages::SATELLITE_TYPE_MASK_LEO |
|
staticconstexpr |
Initial value:=
(1UL << static_cast<uint8_t>(SatelliteType::LEO))
Definition at line 127 of file signal_defs.h.
◆ SATELLITE_TYPE_MASK_MIXED
constexpr uint32_t point_one::fusion_engine::messages::SATELLITE_TYPE_MASK_MIXED |
|
staticconstexpr |
Initial value:=
(1UL << static_cast<uint8_t>(SatelliteType::MIXED))
Definition at line 135 of file signal_defs.h.
◆ SATELLITE_TYPE_MASK_QZSS
constexpr uint32_t point_one::fusion_engine::messages::SATELLITE_TYPE_MASK_QZSS |
|
staticconstexpr |
Initial value:=
(1UL << static_cast<uint8_t>(SatelliteType::QZSS))
Definition at line 133 of file signal_defs.h.
◆ SATELLITE_TYPE_MASK_SBAS
constexpr uint32_t point_one::fusion_engine::messages::SATELLITE_TYPE_MASK_SBAS |
|
staticconstexpr |
Initial value:=
(1UL << static_cast<uint8_t>(SatelliteType::SBAS))
Definition at line 137 of file signal_defs.h.