Namespaces | Functions | Variables
gps_common Namespace Reference

Namespaces

 gps_message_converter
 

Functions

static void LLtoUTM (const double Lat, const double Long, double &UTMNorthing, double &UTMEasting, char *UTMZone)
 
static void LLtoUTM (const double Lat, const double Long, double &UTMNorthing, double &UTMEasting, std::string &UTMZone)
 
static void UTM (double lat, double lon, double *x, double *y)
 
static char UTMLetterDesignator (double Lat)
 
static void UTMtoLL (const double UTMNorthing, const double UTMEasting, const char *UTMZone, double &Lat, double &Long)
 
static void UTMtoLL (const double UTMNorthing, const double UTMEasting, std::string UTMZone, double &Lat, double &Long)
 

Variables

const double DEGREES_PER_RADIAN = 180.0/M_PI
 
const double RADIANS_PER_DEGREE = M_PI/180.0
 
const double UTM_E2 = (WGS84_E*WGS84_E)
 
const double UTM_E4 = (UTM_E2*UTM_E2)
 
const double UTM_E6 = (UTM_E4*UTM_E2)
 
const double UTM_EP2 = (UTM_E2/(1-UTM_E2))
 
const double UTM_FE = 500000.0
 
const double UTM_FN_N = 0.0
 
const double UTM_FN_S = 10000000.0
 
const double UTM_K0 = 0.9996
 
const double WGS84_A = 6378137.0
 
const double WGS84_B = 6356752.31424518
 
const double WGS84_E = 0.0818191908
 
const double WGS84_EP = 0.0820944379
 
const double WGS84_F = 0.0033528107
 

Function Documentation

◆ LLtoUTM() [1/2]

static void gps_common::LLtoUTM ( const double  Lat,
const double  Long,
double &  UTMNorthing,
double &  UTMEasting,
char *  UTMZone 
)
inlinestatic

Convert lat/long to UTM coords. Equations from USGS Bulletin 1532

East Longitudes are positive, West longitudes are negative. North latitudes are positive, South latitudes are negative Lat and Long are in fractional degrees

Written by Chuck Gantz- chuck.nosp@m..gan.nosp@m.tz@gl.nosp@m.obal.nosp@m.star..nosp@m.com

Definition at line 148 of file conversions.h.

◆ LLtoUTM() [2/2]

static void gps_common::LLtoUTM ( const double  Lat,
const double  Long,
double &  UTMNorthing,
double &  UTMEasting,
std::string &  UTMZone 
)
inlinestatic

Definition at line 210 of file conversions.h.

◆ UTM()

static void gps_common::UTM ( double  lat,
double  lon,
double *  x,
double *  y 
)
inlinestatic

Utility function to convert geodetic to UTM position

Units in are floating point degrees (sign for east/west)

Units out are meters

Definition at line 57 of file conversions.h.

◆ UTMLetterDesignator()

static char gps_common::UTMLetterDesignator ( double  Lat)
inlinestatic

Determine the correct UTM letter designator for the given latitude

Returns
'Z' if latitude is outside the UTM limits of 84N to 80S

Written by Chuck Gantz- chuck.nosp@m..gan.nosp@m.tz@gl.nosp@m.obal.nosp@m.star..nosp@m.com

Definition at line 110 of file conversions.h.

◆ UTMtoLL() [1/2]

static void gps_common::UTMtoLL ( const double  UTMNorthing,
const double  UTMEasting,
const char *  UTMZone,
double &  Lat,
double &  Long 
)
inlinestatic

Converts UTM coords to lat/long. Equations from USGS Bulletin 1532

East Longitudes are positive, West longitudes are negative. North latitudes are positive, South latitudes are negative Lat and Long are in fractional degrees.

Written by Chuck Gantz- chuck.nosp@m..gan.nosp@m.tz@gl.nosp@m.obal.nosp@m.star..nosp@m.com

Definition at line 230 of file conversions.h.

◆ UTMtoLL() [2/2]

static void gps_common::UTMtoLL ( const double  UTMNorthing,
const double  UTMEasting,
std::string  UTMZone,
double &  Lat,
double &  Long 
)
inlinestatic

Definition at line 281 of file conversions.h.

Variable Documentation

◆ DEGREES_PER_RADIAN

const double gps_common::DEGREES_PER_RADIAN = 180.0/M_PI

Definition at line 31 of file conversions.h.

◆ RADIANS_PER_DEGREE

const double gps_common::RADIANS_PER_DEGREE = M_PI/180.0

Definition at line 30 of file conversions.h.

◆ UTM_E2

const double gps_common::UTM_E2 = (WGS84_E*WGS84_E)

Definition at line 45 of file conversions.h.

◆ UTM_E4

const double gps_common::UTM_E4 = (UTM_E2*UTM_E2)

Definition at line 46 of file conversions.h.

◆ UTM_E6

const double gps_common::UTM_E6 = (UTM_E4*UTM_E2)

Definition at line 47 of file conversions.h.

◆ UTM_EP2

const double gps_common::UTM_EP2 = (UTM_E2/(1-UTM_E2))

Definition at line 48 of file conversions.h.

◆ UTM_FE

const double gps_common::UTM_FE = 500000.0

Definition at line 42 of file conversions.h.

◆ UTM_FN_N

const double gps_common::UTM_FN_N = 0.0

Definition at line 43 of file conversions.h.

◆ UTM_FN_S

const double gps_common::UTM_FN_S = 10000000.0

Definition at line 44 of file conversions.h.

◆ UTM_K0

const double gps_common::UTM_K0 = 0.9996

Definition at line 41 of file conversions.h.

◆ WGS84_A

const double gps_common::WGS84_A = 6378137.0

Definition at line 34 of file conversions.h.

◆ WGS84_B

const double gps_common::WGS84_B = 6356752.31424518

Definition at line 35 of file conversions.h.

◆ WGS84_E

const double gps_common::WGS84_E = 0.0818191908

Definition at line 37 of file conversions.h.

◆ WGS84_EP

const double gps_common::WGS84_EP = 0.0820944379

Definition at line 38 of file conversions.h.

◆ WGS84_F

const double gps_common::WGS84_F = 0.0033528107

Definition at line 36 of file conversions.h.



gps_common
Author(s):
autogenerated on Sat Jun 17 2023 02:44:30