|
QGroundControl
Ground Control Station for MAVLink Drones
|
Functions | |
| QByteArray | frame (QByteArrayView body) |
| body as one "$<body>*hh\r\n" sentence, with uppercase checksum digits. | |
| QByteArray | repairChecksum (const QByteArray &sentence) |
| Rebuild a valid frame with its checksum and CRLF; short or malformed bodies are only terminated. | |
| QByteArray | makeGGA (const NMEA::GGA &fix, const QTime &utc) |
| QByteArray NMEAUtils::frame | ( | QByteArrayView | body | ) |
body as one "$<body>*hh\r\n" sentence, with uppercase checksum digits.
Definition at line 390 of file NMEASentence.cc.
References NMEA::checksum().
Referenced by Quectel::Plan::command(), makeGGA(), and repairChecksum().
| QByteArray NMEAUtils::makeGGA | ( | const NMEA::GGA & | fix, |
| const QTime & | utc | ||
| ) |
Build GPGGA from explicit fix fields and UTC, truncated to whole seconds. NaN altitude/geoid separation/HDOP and absent satellite count produce empty fields, not defaults. Returns empty for invalid UTC, out-of-range/nonfinite coordinates, infinite measurements, negative HDOP, or quality above the protocol maximum. Altitude is MSL; geoid separation is signed.
Definition at line 412 of file NMEASentence.cc.
References NMEA::GGA::altitude, NMEA::DECIMAL_BASE, frame(), NMEA::GGA::geoidSeparation, NMEA::GGA::hdop, NMEA::GGA::latitude, NMEA::GGA::longitude, NMEA::GgaQuality::MAX_VALUE, NMEA::MINUTES_PER_DEGREE, NMEA::GGA::quality, and NMEA::GGA::satellitesUsed.
| QByteArray NMEAUtils::repairChecksum | ( | const QByteArray & | sentence | ) |
Rebuild a valid frame with its checksum and CRLF; short or malformed bodies are only terminated.
Definition at line 396 of file NMEASentence.cc.
References frame(), NMEA::frame(), and NMEA::Sentence::PREFIX_LENGTH.