0.2.0
Loading...
Searching...
No Matches
EmlidSensor.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
19
20namespace NAV
21{
23class EmlidSensor : public Node, public UartSensor
24{
25 public:
29 ~EmlidSensor() override;
31 EmlidSensor(const EmlidSensor&) = delete;
38
40 [[nodiscard]] static std::string typeStatic();
41
43 [[nodiscard]] std::string type() const override;
44
46 [[nodiscard]] static std::string category();
47
50 void guiConfig() override;
51
53 [[nodiscard]] json save() const override;
54
57 void restore(const json& j) override;
58
60 bool resetNode() override;
61
62 private:
63 constexpr static size_t OUTPUT_PORT_INDEX_EMLID_OBS = 0;
64
66 bool initialize() override;
67
69 void deinitialize() override;
70
75 static void asciiOrBinaryAsyncMessageReceived(void* userData, uart::protocol::Packet& p, size_t index);
76
79};
80
81} // namespace NAV
Class to read out Emlid Sensors.
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Node Class.
Abstract Uart Sensor Class.
Emlid Sensor Class.
Definition EmlidSensor.hpp:24
EmlidSensor()
Default constructor.
std::string type() const override
String representation of the Class Type.
void restore(const json &j) override
Restores the node from a json object.
json save() const override
Saves the node into a json object.
static std::string typeStatic()
String representation of the Class Type.
static std::string category()
String representation of the Class Category.
bool resetNode() override
Resets the node. It is guaranteed that the node is initialized when this is called.
EmlidSensor(EmlidSensor &&)=delete
Move constructor.
EmlidSensor & operator=(EmlidSensor &&)=delete
Move assignment operator.
~EmlidSensor() override
Destructor.
void guiConfig() override
ImGui config window which is shown on double click.
EmlidSensor(const EmlidSensor &)=delete
Copy constructor.
EmlidSensor & operator=(const EmlidSensor &)=delete
Copy assignment operator.
Abstract parent class for all nodes.
Definition Node.hpp:86
Abstract Uart Sensor Class.
Definition UartSensor.hpp:26
Class to read out Emlid Sensors.
Definition EmlidUartSensor.hpp:24