Goby3 3.5.1
2026.06.04
Loading...
Searching...
No Matches
goby::util::gps Namespace Reference

Classes

struct  RMC
struct  HDT
struct  WPL
struct  RTE

Enumerations

enum  CoordType { LAT , LON }

Functions

double nmea_geo_to_decimal (std::string nmea_geo_str, char hemi)
 Convert NMEA latitude/longitude string plus hemisphere to a decimal degrees value.
std::pair< std::string, char > decimal_to_nmea_geo (double decimal, CoordType t)
 Convert a decimal degrees latitude or longitude into a pair of NMEA string representation and hemisphere value.
bool operator== (const RMC &rmc1, const RMC &rmc2)
std::ostream & operator<< (std::ostream &os, const RMC &rmc)
bool operator== (const HDT &hdt1, const HDT &hdt2)
std::ostream & operator<< (std::ostream &os, const HDT &hdt)
bool operator== (const WPL &wpl1, const WPL &wpl2)
std::ostream & operator<< (std::ostream &os, const WPL &wpl)
bool operator== (const RTE &rte1, const RTE &rte2)
std::ostream & operator<< (std::ostream &os, const RTE &rte)

Enumeration Type Documentation

◆ CoordType

Enumerator
LAT 
LON 

Definition at line 47 of file gps_sentence.h.

Function Documentation

◆ decimal_to_nmea_geo()

std::pair< std::string, char > goby::util::gps::decimal_to_nmea_geo ( double decimal,
CoordType t )

Convert a decimal degrees latitude or longitude into a pair of NMEA string representation and hemisphere value.

◆ nmea_geo_to_decimal()

double goby::util::gps::nmea_geo_to_decimal ( std::string nmea_geo_str,
char hemi )

Convert NMEA latitude/longitude string plus hemisphere to a decimal degrees value.

◆ operator<<() [1/4]

std::ostream & goby::util::gps::operator<< ( std::ostream & os,
const HDT & hdt )
inline

Definition at line 139 of file gps_sentence.h.

◆ operator<<() [2/4]

std::ostream & goby::util::gps::operator<< ( std::ostream & os,
const RMC & rmc )
inline

Definition at line 108 of file gps_sentence.h.

◆ operator<<() [3/4]

std::ostream & goby::util::gps::operator<< ( std::ostream & os,
const RTE & rte )
inline

Definition at line 219 of file gps_sentence.h.

◆ operator<<() [4/4]

std::ostream & goby::util::gps::operator<< ( std::ostream & os,
const WPL & wpl )
inline

Definition at line 175 of file gps_sentence.h.

◆ operator==() [1/4]

bool goby::util::gps::operator== ( const HDT & hdt1,
const HDT & hdt2 )
inline

Definition at line 134 of file gps_sentence.h.

◆ operator==() [2/4]

bool goby::util::gps::operator== ( const RMC & rmc1,
const RMC & rmc2 )
inline

Definition at line 103 of file gps_sentence.h.

◆ operator==() [3/4]

bool goby::util::gps::operator== ( const RTE & rte1,
const RTE & rte2 )
inline

Definition at line 214 of file gps_sentence.h.

◆ operator==() [4/4]

bool goby::util::gps::operator== ( const WPL & wpl1,
const WPL & wpl2 )
inline

Definition at line 170 of file gps_sentence.h.