QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
NMEA::Sentence Struct Reference

#include <NMEASentence.h>

Public Member Functions

std::string_view type () const
 
std::string_view talker () const
 

Public Attributes

std::array< std::string_view, MAX_FIELDS > fields {}
 
size_t count = 0
 

Static Public Attributes

static constexpr size_t MAX_FIELDS = 32
 
static constexpr int PREFIX_LENGTH = 1
 
static constexpr int TALKER_LENGTH = 2
 
static constexpr int TYPE_LENGTH = 3
 
static constexpr int TYPE_OFFSET = PREFIX_LENGTH + TALKER_LENGTH
 
static constexpr int HEADER_LENGTH = TYPE_OFFSET + TYPE_LENGTH
 

Detailed Description

Definition at line 137 of file NMEASentence.h.

Member Function Documentation

◆ talker()

std::string_view NMEA::Sentence::talker ( ) const
inline

Definition at line 151 of file NMEASentence.h.

References fields, PREFIX_LENGTH, and TALKER_LENGTH.

Referenced by NMEA::gsv(), and NMEA::SatelliteAssembler::ingest().

◆ type()

std::string_view NMEA::Sentence::type ( ) const
inline

Member Data Documentation

◆ count

◆ fields

std::array<std::string_view, MAX_FIELDS> NMEA::Sentence::fields {}

◆ HEADER_LENGTH

constexpr int NMEA::Sentence::HEADER_LENGTH = TYPE_OFFSET + TYPE_LENGTH
staticconstexpr

Definition at line 144 of file NMEASentence.h.

Referenced by NMEA::sentence().

◆ MAX_FIELDS

constexpr size_t NMEA::Sentence::MAX_FIELDS = 32
staticconstexpr

Definition at line 139 of file NMEASentence.h.

◆ PREFIX_LENGTH

constexpr int NMEA::Sentence::PREFIX_LENGTH = 1
staticconstexpr

Definition at line 140 of file NMEASentence.h.

Referenced by NMEA::frame(), NMEAUtils::repairChecksum(), NMEA::sentence(), and talker().

◆ TALKER_LENGTH

constexpr int NMEA::Sentence::TALKER_LENGTH = 2
staticconstexpr

Definition at line 141 of file NMEASentence.h.

Referenced by talker().

◆ TYPE_LENGTH

constexpr int NMEA::Sentence::TYPE_LENGTH = 3
staticconstexpr

Definition at line 142 of file NMEASentence.h.

◆ TYPE_OFFSET

constexpr int NMEA::Sentence::TYPE_OFFSET = PREFIX_LENGTH + TALKER_LENGTH
staticconstexpr

Definition at line 143 of file NMEASentence.h.

Referenced by type().


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