|
| | VTG (std::string talkerId, double courseOverGroundTrue, double courseOverGroundMagnetic, double speedOverGroundKnots, double speedOverGroundKph, std::optional< char > faaModeIndicator=std::nullopt, bool legacyFormat=false) |
| | Construct a VTG message from individual field values.
|
| |
| | VTG (const VTG &)=default |
| |
| VTG & | operator= (const VTG &)=default |
| |
| | VTG (VTG &&) noexcept=default |
| |
| VTG & | operator= (VTG &&) noexcept=default |
| |
| | ~VTG () override=default |
| |
| std::unique_ptr< nmealib::Message > | clone () const override |
| | Create a polymorphic copy of this VTG message.
|
| |
| double | getCourseOverGroundTrue () const noexcept |
| | Get true course over ground in degrees.
|
| |
| char | getCourseOverGroundTrueType () const noexcept |
| | Get true course type indicator (typically 'T', or '\0' in legacy format).
|
| |
| double | getCourseOverGroundMagnetic () const noexcept |
| | Get magnetic course over ground in degrees.
|
| |
| char | getCourseOverGroundMagneticType () const noexcept |
| | Get magnetic course type indicator (typically 'M', or '\0' in legacy format).
|
| |
| double | getSpeedOverGroundKnots () const noexcept |
| | Get speed over ground in knots.
|
| |
| char | getSpeedOverGroundKnotsType () const noexcept |
| | Get knots unit indicator (typically 'N', or '\0' in legacy format).
|
| |
| double | getSpeedOverGroundKph () const noexcept |
| | Get speed over ground in kilometers per hour.
|
| |
| char | getSpeedOverGroundKphType () const noexcept |
| | Get km/h unit indicator (typically 'K', or '\0' in legacy format).
|
| |
| bool | hasFaaModeIndicator () const noexcept |
| | Return whether FAA mode indicator is present.
|
| |
| std::optional< char > | getFaaModeIndicator () const noexcept |
| | Get optional FAA mode indicator.
|
| |
| bool | isLegacyFormat () const noexcept |
| | Return whether this sentence uses legacy compact VTG format.
|
| |
| std::string | getStringContent (bool verbose) const noexcept override |
| | Return a human-readable string representation of this message.
|
| |
| bool | operator== (const VTG &other) const noexcept |
| | Compare two VTG messages for equality.
|
| |
| | Message0183 (const Message0183 &)=default |
| | Copy constructor.
|
| |
| Message0183 & | operator= (const Message0183 &)=default |
| | Copy assignment operator.
|
| |
| | Message0183 (Message0183 &&) noexcept=default |
| | Move constructor.
|
| |
| Message0183 & | operator= (Message0183 &&) noexcept=default |
| | Move assignment operator.
|
| |
| | ~Message0183 () override=default |
| | Destructor.
|
| |
| char | getStartChar () const noexcept |
| | Returns the start character of the NMEA 0183 sentence.
|
| |
| std::string | getTalker () const noexcept |
| | Returns the talker identifier extracted from the sentence.
|
| |
| std::string | getSentenceType () const noexcept |
| | Returns the sentence type identifier extracted from the sentence.
|
| |
| std::string | getPayload () const noexcept |
| | Returns the payload of the NMEA 0183 sentence.
|
| |
| std::string | getChecksumStr () const |
| | Get the checksum string extracted from the raw sentence.
|
| |
| std::string | getCalculatedChecksumStr () const noexcept |
| | Get the calculated checksum string for the sentence payload.
|
| |
| std::string | serialize () const override |
| | Returns the wire-format representation of the NMEA 0183 sentence, that is, the raw information that was passed when the message was created.
|
| |
| bool | operator== (const Message0183 &other) const noexcept |
| | Compares two Message0183 objects for equality based on their content and timestamp.
|
| |
| bool | validate () const noexcept override |
| | Returns whether the message is valid or not.
|
| |
| | Message () |
| |
| | Message (std::string raw, Type type=Type::Unknown, TimePoint ts=std::chrono::system_clock::now()) noexcept |
| |
| virtual | ~Message () |
| |
| | Message (const Message &)=default |
| |
| Message & | operator= (const Message &)=default |
| |
| | Message (Message &&) noexcept=default |
| |
| Message & | operator= (Message &&) noexcept=default |
| |
| Type | getType () const noexcept |
| | Returns the message type.
|
| |
| const std::string & | getRawData () const noexcept |
| | Returns the raw, unmodified data string as received.
|
| |
| TimePoint | getTimestamp () const noexcept |
| | Returns the timestamp associated with this message.
|
| |
| bool | operator== (const Message &other) const noexcept |
| | Compares two Message objects for equality based on their content.
|
| |
Represents a parsed NMEA 0183 VTG (Course Over Ground and Ground Speed) sentence.
VTG supports both modern tagged format and a legacy compact format. In legacy format, type indicators are omitted and only numeric values are present.
Modern sentence format:
$--
VTG,x.x,T,x.x,M,x.x,N,x.x,K[,a]*hh<CR><LF>
Represents a parsed NMEA 0183 VTG (Course Over Ground and Ground Speed) sentence.
Legacy sentence format:
$--
VTG,x.x,x.x,x.x,x.x*hh<CR><LF>
Definition at line 44 of file vtg.h.