Helper Functions to work with Ublox Sensors.
More...
Go to the source code of this file.
Helper Functions to work with Ublox Sensors.
- Author
- T. Topp (topp@.nosp@m.ins..nosp@m.uni-s.nosp@m.tutt.nosp@m.gart..nosp@m.de)
- Date
- 2020-07-22
◆ checksumNMEA()
uint8_t NAV::vendor::ublox::checksumNMEA |
( |
const std::vector< uint8_t > & | data | ) |
|
Calculates the NMEA checksum for the provided data vector.
- Parameters
-
[in] | data | Data Vector for which the checksum should be calculated |
- Returns
- The calculated checksum
◆ checksumUBX()
std::pair< uint8_t, uint8_t > NAV::vendor::ublox::checksumUBX |
( |
const std::vector< uint8_t > & | data | ) |
|
Calculates the two UBX checksums for the provided data vector.
- Parameters
-
[in] | data | Data Vector for which the checksum should be calculated |
- Returns
- The checksums CK_A and CK_B
◆ decryptUbloxObs()
bool NAV::vendor::ublox::decryptUbloxObs |
( |
const std::shared_ptr< NAV::UbloxObs > & | obs, |
|
|
uart::protocol::Packet & | packet, |
|
|
const std::string & | nameId ) |
Decrypts the provided Ublox observation.
- Parameters
-
[in] | obs | Ublox Observation to decrypt |
[in,out] | packet | Uart packet with the data (content gets changed because data gets extracted) |
[in] | nameId | NameId for printing log messages |
- Returns
- False if the message should be discarded