0.2.0
Loading...
Searching...
No Matches
UbloxUtilities.hpp File Reference

Helper Functions to work with Ublox Sensors. More...

Go to the source code of this file.

Functions

uint8_t NAV::vendor::ublox::checksumNMEA (const std::vector< uint8_t > &data)
 Calculates the NMEA checksum for the provided data vector.
 
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.
 
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.
 

Detailed Description

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

Function Documentation

◆ checksumNMEA()

uint8_t NAV::vendor::ublox::checksumNMEA ( const std::vector< uint8_t > & data)

Calculates the NMEA checksum for the provided data vector.

Parameters
[in]dataData 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]dataData 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]obsUblox Observation to decrypt
[in,out]packetUart packet with the data (content gets changed because data gets extracted)
[in]nameIdNameId for printing log messages
Returns
False if the message should be discarded