Derived class for parsing GSA messages.
More...
#include <gpgsa.hpp>
|
static const std::string | MESSAGE_ID = "$GPGSA" |
| Declares the string MESSAGE_ID. More...
|
|
Derived class for parsing GSA messages.
- Date
- 29/09/20
Definition at line 78 of file gpgsa.hpp.
◆ GpgsaParser()
GpgsaParser::GpgsaParser |
( |
| ) |
|
|
inline |
◆ getMessageID()
const std::string GpgsaParser::getMessageID |
( |
| ) |
const |
|
override |
Returns the ASCII message ID, here "$GPGSA".
- Returns
- The message ID
Definition at line 41 of file gpgsa.cpp.
◆ parseASCII()
Parses one GSA message.
- Parameters
-
[in] | sentence | The GSA message to be parsed |
- Returns
- A ROS message pointer of ROS type GpgsaMsg
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()[18] if anybody ever needs it.
Reimplemented from BaseParser< GpgsaMsg >.
Definition at line 53 of file gpgsa.cpp.
◆ MESSAGE_ID
const std::string GpgsaParser::MESSAGE_ID = "$GPGSA" |
|
static |
Declares the string MESSAGE_ID.
Definition at line 104 of file gpgsa.hpp.
The documentation for this class was generated from the following files: