Fixposition SDK 0.0.0-heads/main-0-g90a51ff
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
fpsdk::common::parser::nmea::NmeaVtgPayload Struct Reference

NMEA-Gx-VTG message payload. More...

#include <nmea.hpp>

Inheritance diagram for fpsdk::common::parser::nmea::NmeaVtgPayload:
Collaboration diagram for fpsdk::common::parser::nmea::NmeaVtgPayload:

Public Member Functions

bool SetFromMsg (const uint8_t *msg, const std::size_t msg_size)
 Set data from sentence.
 
- Public Member Functions inherited from fpsdk::common::parser::nmea::NmeaPayload
virtual ~NmeaPayload ()=default
 Virtual dtor for polymorphism.
 

Public Attributes

NmeaFloat cogt
 Course over ground (true) [deg].
 
NmeaFloat cogm
 Course over ground (magnetic) [deg], not typically available.
 
NmeaFloat sogn
 Speed over ground [knots].
 
NmeaFloat sogk
 Speed over ground [km/h].
 
NmeaModeGllVtg mode = NmeaModeGllVtg::UNSPECIFIED
 Positioning system mode.
 
- Public Attributes inherited from fpsdk::common::parser::nmea::NmeaPayload
NmeaTalkerId talker = NmeaTalkerId::UNSPECIFIED
 Talker.
 
bool valid_ = false
 Payload successfully decoded (true), or not (yet) decoded (false)
 

Static Public Attributes

static constexpr const char * FORMATTER = "VTG"
 Talker.
 

Detailed Description

NMEA-Gx-VTG message payload.

Definition at line 549 of file nmea.hpp.

Member Function Documentation

◆ SetFromMsg()

bool fpsdk::common::parser::nmea::NmeaVtgPayload::SetFromMsg ( const uint8_t * msg,
const std::size_t msg_size )

Set data from sentence.

Parameters
[in]msgPointer to the NMEA message
[in]msg_sizeSize of the NMEA message (>= 11)
Returns
true if sentence payload was correct and all data could be extracted (fields are now valid), or false otherwise (fields are now invalid)

Member Data Documentation

◆ cogt

NmeaFloat fpsdk::common::parser::nmea::NmeaVtgPayload::cogt

Course over ground (true) [deg].

Definition at line 551 of file nmea.hpp.

◆ cogm

NmeaFloat fpsdk::common::parser::nmea::NmeaVtgPayload::cogm

Course over ground (magnetic) [deg], not typically available.

Definition at line 552 of file nmea.hpp.

◆ sogn

NmeaFloat fpsdk::common::parser::nmea::NmeaVtgPayload::sogn

Speed over ground [knots].

Definition at line 553 of file nmea.hpp.

◆ sogk

NmeaFloat fpsdk::common::parser::nmea::NmeaVtgPayload::sogk

Speed over ground [km/h].

Definition at line 554 of file nmea.hpp.

◆ mode

NmeaModeGllVtg fpsdk::common::parser::nmea::NmeaVtgPayload::mode = NmeaModeGllVtg::UNSPECIFIED

Positioning system mode.

Definition at line 555 of file nmea.hpp.

◆ FORMATTER

const char* fpsdk::common::parser::nmea::NmeaVtgPayload::FORMATTER = "VTG"
staticconstexpr

Talker.

Definition at line 568 of file nmea.hpp.


The documentation for this struct was generated from the following file: