0.2.0
Loading...
Searching...
No Matches
NAV::vendor::ublox::UbloxUartSensor Class Reference

Class to read out Ublox Sensors. More...

Public Member Functions

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.
 
UbloxUartSensoroperator= (const UbloxUartSensor &)=delete
 Copy assignment operator.
 
UbloxUartSensoroperator= (UbloxUartSensor &&)=delete
 Move assignment operator.
 
 UbloxUartSensor ()=default
 Default constructor.
 
 UbloxUartSensor (const UbloxUartSensor &)=delete
 Copy constructor.
 
 UbloxUartSensor (std::string name)
 Constructor.
 
 UbloxUartSensor (UbloxUartSensor &&)=delete
 Move constructor.
 
 ~UbloxUartSensor ()=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
 ยต - First sync character which begins a new binary message
 
static constexpr uint8_t BINARY_SYNC_CHAR_2
 b - Second sync character which begins a new binary message
 

Detailed Description

Class to read out Ublox Sensors.

Constructor & Destructor Documentation

◆ UbloxUartSensor()

NAV::vendor::ublox::UbloxUartSensor::UbloxUartSensor ( std::string name)
explicit

Constructor.

Parameters
[in]nameName of the Parent Node

Member Function Documentation

◆ findPacket()

std::unique_ptr< uart::protocol::Packet > NAV::vendor::ublox::UbloxUartSensor::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: