Derived class for parsing GGA messages.
More...
#include <gpgga.hpp>
|
static const std::string | MESSAGE_ID = "$GPGGA" |
| Declares the string MESSAGE_ID. More...
|
|
Derived class for parsing GGA messages.
- Date
- 13/08/20
Definition at line 79 of file gpgga.hpp.
◆ GpggaParser()
GpggaParser::GpggaParser |
( |
| ) |
|
|
inline |
◆ getMessageID()
const std::string GpggaParser::getMessageID |
( |
| ) |
const |
|
overridevirtual |
◆ parseASCII()
Parses one GGA message.
- Parameters
-
[in] | sentence | The GGA message to be parsed |
- Returns
- A ROS message pointer of ROS type GpggaMsg
Caution: Due to the occurrence of the throw keyword, this method parseASCII should be called within a try / catch framework... Note: This method is called from within the read() method of the RxMessage class by including the checksum part in the argument "sentence" here, though the checksum is never parsed: It would be sentence.get_body()[15] if anybody ever needs it.
Reimplemented from BaseParser< GpggaMsg >.
Definition at line 53 of file gpgga.cpp.
◆ wasLastGPGGAValid()
bool GpggaParser::wasLastGPGGAValid |
( |
| ) |
const |
Tells us whether the last GGA message was valid or not.
- Returns
- True if last GGA message was valid, false if not
Definition at line 156 of file gpgga.cpp.
◆ MESSAGE_ID
const std::string GpggaParser::MESSAGE_ID = "$GPGGA" |
|
static |
Declares the string MESSAGE_ID.
Definition at line 111 of file gpgga.hpp.
◆ was_last_gpgga_valid_
bool GpggaParser::was_last_gpgga_valid_ |
|
private |
Declares a boolean representing whether or not the last GPGGA message was valid.
Definition at line 118 of file gpgga.hpp.
The documentation for this class was generated from the following files: