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

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

Public Types

enum  Fields {
  LATITUDE = 1, LATITUDE_NS = 2, LONGITUDE = 3, LONGITUDE_EW = 4,
  NAME = 5
}
 

Public Member Functions

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

Public Attributes

boost::optional< boost::units::quantity< boost::units::degree::plane_angle > > latitude
 
boost::optional< boost::units::quantity< boost::units::degree::plane_angle > > longitude
 
boost::optional< std::string > name
 

Static Public Attributes

constexpr static int min_size = NAME + 1
 
constexpr static int size = min_size
 

Detailed Description

Definition at line 144 of file gps_sentence.h.

Member Enumeration Documentation

◆ Fields

Enumerator
LATITUDE 
LATITUDE_NS 
LONGITUDE 
LONGITUDE_EW 
NAME 

Definition at line 158 of file gps_sentence.h.

Constructor & Destructor Documentation

◆ WPL() [1/2]

goby::util::gps::WPL::WPL ( )
default

◆ WPL() [2/2]

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

Definition at line 149 of file gps_sentence.h.

Member Function Documentation

◆ parse()

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

◆ serialize()

NMEASentence goby::util::gps::WPL::serialize ( std::string  talker_id = "EC") const

Member Data Documentation

◆ latitude

boost::optional<boost::units::quantity<boost::units::degree::plane_angle> > goby::util::gps::WPL::latitude

Definition at line 154 of file gps_sentence.h.

◆ longitude

boost::optional<boost::units::quantity<boost::units::degree::plane_angle> > goby::util::gps::WPL::longitude

Definition at line 155 of file gps_sentence.h.

◆ min_size

constexpr static int goby::util::gps::WPL::min_size = NAME + 1
staticconstexpr

Definition at line 166 of file gps_sentence.h.

◆ name

boost::optional<std::string> goby::util::gps::WPL::name

Definition at line 156 of file gps_sentence.h.

◆ size

constexpr static int goby::util::gps::WPL::size = min_size
staticconstexpr

Definition at line 167 of file gps_sentence.h.


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