0.2.0
Loading...
Searching...
No Matches
UbloxUtilities.hpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
13
14#pragma once
15
16#include <cstdint>
17#include <vector>
18#include <memory>
19
20#include "uart/protocol/packet.hpp"
22
23namespace NAV::vendor::ublox
24{
30[[nodiscard]] bool decryptUbloxObs(const std::shared_ptr<NAV::UbloxObs>& obs, uart::protocol::Packet& packet, const std::string& nameId);
31
35std::pair<uint8_t, uint8_t> checksumUBX(const std::vector<uint8_t>& data);
36
40uint8_t checksumNMEA(const std::vector<uint8_t>& data);
41
42} // namespace NAV::vendor::ublox
ublox Observation Class
uint8_t checksumNMEA(const std::vector< uint8_t > &data)
Calculates the NMEA checksum for the provided data vector.
bool decryptUbloxObs(const std::shared_ptr< NAV::UbloxObs > &obs, uart::protocol::Packet &packet, const std::string &nameId)
Decrypts the provided Ublox observation.