QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSASCIILog.h File Reference
#include <cstdint>
#include <optional>
#include <string_view>
#include "CRC32.h"
#include "NMEASentence.h"
+ Include dependency graph for GPSASCIILog.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GPSASCIILog
 The header fields receiver detection tells NovAtel-style ASCII logs apart by. More...
 

Functions

std::optional< GPSASCIILog > gpsASCIILog (std::string_view line)
 

Function Documentation

◆ gpsASCIILog()

std::optional< GPSASCIILog > gpsASCIILog ( std::string_view  line)
inline

A "#NAME,<source>,...;<body>*<crc>" log whose CRC-32 (reflected, zero initial value, no final XOR) over the text between '#' and '*' matches its eight hex digits; nullopt otherwise.

Definition at line 21 of file GPSASCIILog.h.

References QGC::crc32Update(), NMEA::hexNumber(), and GPSASCIILog::name.