Resurgence (PY2022)
Codebase for the Husky Robotics 2021-2022 rover Resurgence
Loading...
Searching...
No Matches
GPSDatum Class Reference

A GPS datum that specifies the reference ellipsoid for use in GPS calculations. More...

#include <gps_util.h>

Collaboration diagram for GPSDatum:

Public Member Functions

 GPSDatum (double a, double b)
 Construct a new GPSDatum object, with the specified parameters for the ellipsoid.
 
double getA () const
 Get the semi-major axis of the reference ellipsoid.
 
double getB () const
 Get the semi-minor axis of the reference ellipsoid.
 
double getFlattening () const
 Get the flattening parameter of the reference ellipsoid.
 
double getSquareEccentricity () const
 Get the square of the (first) eccentricity of the ellipsoid.
 

Static Public Attributes

static const GPSDatum WGS84
 Reference links: https://en.wikipedia.org/wiki/Geodetic_datum#Earth_reference_ellipsoid https://en.wikipedia.org/wiki/World_Geodetic_System#1984_version https://en.wikipedia.org/wiki/Longitude#Length_of_a_degree_of_longitude https://en.wikipedia.org/wiki/Latitude#Meridian_distance_on_the_ellipsoid.
 

Detailed Description

A GPS datum that specifies the reference ellipsoid for use in GPS calculations.

This is important to resolve what exact location a gps coordinate specifies.

Constructor & Destructor Documentation

◆ GPSDatum()

GPSDatum::GPSDatum ( double a,
double b )

Construct a new GPSDatum object, with the specified parameters for the ellipsoid.

Parameters
aThe semi-major axis of the ellipsoid.
bThe semi-minor axis of the ellipsoid.

The documentation for this class was generated from the following files: