0.2.0
Loading...
Searching...
No Matches
UbloxSensor.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 UbloxSensor : public Node, public UartSensor
24{
25 public:
29 ~UbloxSensor() override;
31 UbloxSensor(const UbloxSensor&) = 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_UBLOX_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
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Node Class.
Abstract Uart Sensor Class.
Class to read out Ublox Sensors.
Abstract parent class for all nodes.
Definition Node.hpp:86
Abstract Uart Sensor Class.
Definition UartSensor.hpp:26
Ublox Sensor Class.
Definition UbloxSensor.hpp:24
UbloxSensor & operator=(UbloxSensor &&)=delete
Move assignment operator.
~UbloxSensor() override
Destructor.
bool resetNode() override
Resets the node. It is guaranteed that the node is initialized when this is called.
std::string type() const override
String representation of the Class Type.
json save() const override
Saves the node into a json object.
UbloxSensor(const UbloxSensor &)=delete
Copy constructor.
UbloxSensor & operator=(const UbloxSensor &)=delete
Copy assignment operator.
static std::string category()
String representation of the Class Category.
UbloxSensor(UbloxSensor &&)=delete
Move constructor.
void restore(const json &j) override
Restores the node from a json object.
void guiConfig() override
ImGui config window which is shown on double click.
UbloxSensor()
Default constructor.
static std::string typeStatic()
String representation of the Class Type.
Class to read out Ublox Sensors.
Definition UbloxUartSensor.hpp:26