QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSFrame Struct Reference

#include <GPSStreamDemux.h>

Public Member Functions

std::string_view text () const
 

Public Attributes

GPSFrameKind kind = GPSFrameKind::ASCIILine
 
std::span< const uint8_t > bytes {}
 The frame as received. Lines and sentences exclude CR/LF.
 
std::span< const uint8_t > payload {}
 UBX and RTCM3 message payload without header and checksum; the whole frame for SBF, sentences and lines.
 
uint32_t messageId = 0
 UBX class | id << 8, RTCM3 message number, or SBF block number; zero for text.
 

Detailed Description

One frame the demultiplexer completed. The views borrow framer storage and are valid only while the frame is dispatched; copy anything a decoder keeps.

Definition at line 26 of file GPSStreamDemux.h.

Member Function Documentation

◆ text()

std::string_view GPSFrame::text ( ) const
inline

Definition at line 36 of file GPSStreamDemux.h.

Member Data Documentation

◆ bytes

std::span<const uint8_t> GPSFrame::bytes {}

The frame as received. Lines and sentences exclude CR/LF.

Definition at line 30 of file GPSStreamDemux.h.

◆ kind

Definition at line 28 of file GPSStreamDemux.h.

◆ messageId

uint32_t GPSFrame::messageId = 0

UBX class | id << 8, RTCM3 message number, or SBF block number; zero for text.

Definition at line 34 of file GPSStreamDemux.h.

◆ payload

std::span<const uint8_t> GPSFrame::payload {}

UBX and RTCM3 message payload without header and checksum; the whole frame for SBF, sentences and lines.

Definition at line 32 of file GPSStreamDemux.h.


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