0.2.0
Loading...
Searching...
No Matches
KvhSensor.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 KvhSensor : public Imu, public UartSensor
24{
25 public:
29 ~KvhSensor() override;
31 KvhSensor(const KvhSensor&) = delete;
33 KvhSensor(KvhSensor&&) = delete;
35 KvhSensor& operator=(const KvhSensor&) = 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_KVH_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
81 uint8_t _prevSequenceNumber = UINT8_MAX;
82};
83
84} // namespace NAV
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Abstract IMU Class.
Class to read out KVH Sensors.
Abstract Uart Sensor Class.
Abstract IMU Class.
Definition Imu.hpp:24
KVH Sensor Class.
Definition KvhSensor.hpp:24
static std::string typeStatic()
String representation of the Class Type.
void guiConfig() override
ImGui config window which is shown on double click.
void restore(const json &j) override
Restores the node from a json object.
KvhSensor()
Default constructor.
KvhSensor & operator=(const KvhSensor &)=delete
Copy assignment operator.
KvhSensor(const KvhSensor &)=delete
Copy constructor.
KvhSensor & operator=(KvhSensor &&)=delete
Move assignment operator.
json save() const override
Saves the node into a json object.
std::string type() const override
String representation of the Class Type.
static std::string category()
String representation of the Class Category.
KvhSensor(KvhSensor &&)=delete
Move constructor.
bool resetNode() override
Resets the node. It is guaranteed that the node is initialized when this is called.
~KvhSensor() override
Destructor.
Abstract Uart Sensor Class.
Definition UartSensor.hpp:26
Class to read out KVH Sensors.
Definition KvhUartSensor.hpp:24