0.2.0
Loading...
Searching...
No Matches
NAV::vendor::emlid::EmlidUartSensor Class Reference

Class to read out Emlid Sensors. More...

Public Member Functions

 EmlidUartSensor ()=default
 Default constructor.
 
 EmlidUartSensor (const EmlidUartSensor &)=delete
 Copy constructor.
 
 EmlidUartSensor (EmlidUartSensor &&)=delete
 Move constructor.
 
 EmlidUartSensor (std::string name)
 Constructor.
 
std::unique_ptr< uart::protocol::Packet > findPacket (uint8_t dataByte)
 Collects data bytes and searches for packages inside of them.
 
uart::sensors::UartSensor * operator-> ()
 Arrow operator overload.
 
EmlidUartSensoroperator= (const EmlidUartSensor &)=delete
 Copy assignment operator.
 
EmlidUartSensoroperator= (EmlidUartSensor &&)=delete
 Move assignment operator.
 
 ~EmlidUartSensor ()=default
 Destructor.
 

Static Public Attributes

static constexpr uint8_t ASCII_START_CHAR
 Ascii character which begins a new ascii message.
 
static constexpr uint8_t BINARY_SYNC_CHAR_1
 R - First sync character which begins a new binary message.
 
static constexpr uint8_t BINARY_SYNC_CHAR_2
 E - Second sync character which begins a new binary message.
 

Detailed Description

Class to read out Emlid Sensors.

Constructor & Destructor Documentation

◆ EmlidUartSensor()

NAV::vendor::emlid::EmlidUartSensor::EmlidUartSensor ( std::string name)
explicit

Constructor.

Parameters
[in]nameName of the Parent Node

Member Function Documentation

◆ findPacket()

std::unique_ptr< uart::protocol::Packet > NAV::vendor::emlid::EmlidUartSensor::findPacket ( uint8_t dataByte)

Collects data bytes and searches for packages inside of them.

Parameters
[in]dataByteThe next data byte
Returns
nullptr if no packet found yet, otherwise a pointer to the packet

The documentation for this class was generated from the following file: