18#include <fmt/ostream.h>
19#include <nlohmann/json.hpp>
20using json = nlohmann::json;
90struct fmt::formatter<NAV::UartSensor::Baudrate> : ostream_formatter
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Abstract Uart Sensor Class.
Definition UartSensor.hpp:26
Baudrate sensorBaudrate() const
Returns the Baudrate for the element Selected by the GUI.
int _selectedBaudrate
Baudrate for the sensor.
Definition UartSensor.hpp:82
UartSensor(const UartSensor &)=delete
Copy constructor.
std::string _sensorPort
Definition UartSensor.hpp:79
Baudrate
Available Baudrates.
Definition UartSensor.hpp:30
@ BAUDRATE_115200
Baudrate with 115200 symbols per second [Baud].
Definition UartSensor.hpp:36
@ BAUDRATE_57600
Baudrate with 57600 symbols per second [Baud].
Definition UartSensor.hpp:35
@ BAUDRATE_230400
Baudrate with 230400 symbols per second [Baud].
Definition UartSensor.hpp:38
@ BAUDRATE_FASTEST
Fastest possible Baudrate will be automatically chosen.
Definition UartSensor.hpp:31
@ BAUDRATE_128000
Baudrate with 128000 symbols per second [Baud].
Definition UartSensor.hpp:37
@ BAUDRATE_38400
Baudrate with 38400 symbols per second [Baud].
Definition UartSensor.hpp:34
@ BAUDRATE_9600
Baudrate with 9600 symbols per second [Baud].
Definition UartSensor.hpp:32
@ BAUDRATE_19200
Baudrate with 19200 symbols per second [Baud].
Definition UartSensor.hpp:33
@ BAUDRATE_921600
Baudrate with 921600 symbols per second [Baud].
Definition UartSensor.hpp:40
@ BAUDRATE_460800
Baudrate with 460800 symbols per second [Baud].
Definition UartSensor.hpp:39
UartSensor()=default
Default constructor.
UartSensor & operator=(UartSensor &&)=delete
Move assignment operator.
void restore(const json &j)
Restores the node from a json object.
static int baudrate2Selection(Baudrate baud)
Returns the guiSelection for the given baudrate.
UartSensor & operator=(const UartSensor &)=delete
Copy assignment operator.
UartSensor(UartSensor &&)=delete
Move constructor.
~UartSensor()=default
Destructor.
json save() const
Saves the node into a json object.