0.2.0
Loading...
Searching...
No Matches
UartPacketConverter.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
17
21
22#include <array>
23#include <memory>
24
25namespace NAV
26{
29{
30 public:
43
45 [[nodiscard]] static std::string typeStatic();
46
48 [[nodiscard]] std::string type() const override;
49
51 [[nodiscard]] static std::string category();
52
55 void guiConfig() override;
56
58 [[nodiscard]] json save() const override;
59
62 void restore(const json& j) override;
63
64 private:
65 constexpr static size_t OUTPUT_PORT_INDEX_CONVERTED = 0;
66 constexpr static size_t INPUT_PORT_INDEX_UART_PACKET = 0;
67
69 enum OutputType
70 {
71 OutputType_UbloxObs,
72 OutputType_EmlidObs,
73 };
74
76 OutputType _outputType = OutputType_UbloxObs;
77
79 bool initialize() override;
80
84 void receiveObs(InputPin::NodeDataQueue& queue, size_t pinIdx);
85};
86
87} // namespace NAV
Emlid Observation Class.
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Node Class.
UART Packet storage class.
ublox Observation Class
Abstract parent class for all nodes.
Definition Node.hpp:86
Decrypts Uart packets.
Definition UartPacketConverter.hpp:29
json save() const override
Saves the node into a json object.
UartPacketConverter & operator=(UartPacketConverter &&)=delete
Move assignment operator.
static std::string typeStatic()
String representation of the Class Type.
void restore(const json &j) override
Restores the node from a json object.
UartPacketConverter()
Default constructor.
UartPacketConverter(const UartPacketConverter &)=delete
Copy constructor.
UartPacketConverter(UartPacketConverter &&)=delete
Move constructor.
UartPacketConverter & operator=(const UartPacketConverter &)=delete
Copy assignment operator.
void guiConfig() override
ImGui config window which is shown on double click.
~UartPacketConverter() override
Destructor.
static std::string category()
String representation of the Class Category.
std::string type() const override
String representation of the Class Type.