Goby3  3.1.5a
2024.05.23
goby::util::gps::HDT Struct Reference

#include <goby/util/linebasedcomms/gps_sentence.h>

Public Types

enum  Fields { HEADING = 1, T = 2 }
 

Public Member Functions

 HDT ()=default
 
 HDT (const NMEASentence &sentence)
 
void parse (const NMEASentence &sentence)
 
NMEASentence serialize (std::string talker_id="GP") const
 

Public Attributes

boost::optional< boost::units::quantity< boost::units::degree::plane_angle > > true_heading
 

Static Public Attributes

constexpr static int min_size = HEADING + 1
 
constexpr static int size = T + 1
 

Detailed Description

Definition at line 113 of file gps_sentence.h.

Member Enumeration Documentation

◆ Fields

Enumerator
HEADING 

Definition at line 125 of file gps_sentence.h.

Constructor & Destructor Documentation

◆ HDT() [1/2]

goby::util::gps::HDT::HDT ( )
default

◆ HDT() [2/2]

goby::util::gps::HDT::HDT ( const NMEASentence sentence)
inline

Definition at line 118 of file gps_sentence.h.

Member Function Documentation

◆ parse()

void goby::util::gps::HDT::parse ( const NMEASentence sentence)

◆ serialize()

NMEASentence goby::util::gps::HDT::serialize ( std::string  talker_id = "GP") const

Member Data Documentation

◆ min_size

constexpr static int goby::util::gps::HDT::min_size = HEADING + 1
staticconstexpr

Definition at line 130 of file gps_sentence.h.

◆ size

constexpr static int goby::util::gps::HDT::size = T + 1
staticconstexpr

Definition at line 131 of file gps_sentence.h.

◆ true_heading

boost::optional<boost::units::quantity<boost::units::degree::plane_angle> > goby::util::gps::HDT::true_heading

Definition at line 123 of file gps_sentence.h.


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