QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QuectelCodec Namespace Reference

PQTM reply fields and the acknowledgement and readback rules every command shares. More...

Classes

class  Fields
 Borrowed fields for the largest supported PQTM reply, including empty trailing fields. More...
 

Functions

template<typename T >
bool number (std::string_view text, T &result)
 
std::string_view checkedBody (std::string_view line)
 The body of a checksum-valid "$<body>*hh" line; empty otherwise.
 
bool rejected (const Fields &reply, std::string_view command)
 
GPSCommandOutcome acknowledgement (const Fields &reply, std::string_view command)
 "<command>,OK" acknowledges and "<command>,ERROR,<code>" rejects a setting.
 
GPSCommandOutcome readback (const Fields &reply, std::string_view command, bool matches)
 

Detailed Description

PQTM reply fields and the acknowledgement and readback rules every command shares.

Function Documentation

◆ acknowledgement()

GPSCommandOutcome QuectelCodec::acknowledgement ( const Fields &  reply,
std::string_view  command 
)
inline

"<command>,OK" acknowledges and "<command>,ERROR,<code>" rejects a setting.

Definition at line 71 of file QuectelCodec.h.

References Acknowledged, Pending, Rejected, rejected(), and QuectelCodec::Fields::size().

Referenced by Quectel::Plan::acknowledgement().

◆ checkedBody()

std::string_view QuectelCodec::checkedBody ( std::string_view  line)
inline

The body of a checksum-valid "$<body>*hh" line; empty otherwise.

Definition at line 58 of file QuectelCodec.h.

References NMEA::frame().

◆ number()

template<typename T >
bool QuectelCodec::number ( std::string_view  text,
T &  result 
)

Definition at line 44 of file QuectelCodec.h.

◆ readback()

GPSCommandOutcome QuectelCodec::readback ( const Fields &  reply,
std::string_view  command,
bool  matches 
)
inline

◆ rejected()

bool QuectelCodec::rejected ( const Fields &  reply,
std::string_view  command 
)
inline

Definition at line 64 of file QuectelCodec.h.

References error, rejected(), and QuectelCodec::Fields::size().

Referenced by acknowledgement(), readback(), and rejected().