gps::Gprmc Class Reference

#include <nmea0183.h>

Inheritance diagram for gps::Gprmc:

Inheritance graph
[legend]
Collaboration diagram for gps::Gprmc:

Collaboration graph
[legend]
List of all members.

Detailed Description

Recomended minimum specifig GPS/Transit Data sentence.


Public Member Functions

 Gprmc (const char sentence[])
 Constructs a GPRMC sentence.
void time (struct timeval *tv) const
 Gets UTC time position fix.
int status (void) const
 Gets the status.
double latitude (void) const
 Gets latitude.
double longitude (void) const
 Gets longitude.
double speedKnots (void) const
 Gets the speed over ground in knots.
double trueCourse (void) const
 Gets the true course over ground.
void date (struct tm *tm) const
 Gets the UTC date of position fix.
double magneticVariation (void) const
 Gets the magnetic variation.
int mode (void) const
 Gets mode indicator.


Constructor & Destructor Documentation

gps::Gprmc::Gprmc ( const char  sentence[]  ) 

Constructs a GPRMC sentence.

Parameters:
sentence pointer to string sentence.


Member Function Documentation

void gps::Gprmc::time ( struct timeval *  tv  )  const

Gets UTC time position fix.

Parameters:
tv pointer to struct to receive time values.

int gps::Gprmc::status ( void   )  const

Gets the status.

Returns:
the status value.

double gps::Gprmc::latitude ( void   )  const

Gets latitude.

Returns:
latitude values.

double gps::Gprmc::longitude ( void   )  const

Gets longitude.

Returns:
longitude values.

double gps::Gprmc::speedKnots ( void   )  const

Gets the speed over ground in knots.

Returns:
Speed over ground in knots.

double gps::Gprmc::trueCourse ( void   )  const

Gets the true course over ground.

Returns:
True course over ground.

void gps::Gprmc::date ( struct tm *  tm  )  const

Gets the UTC date of position fix.

Parameters:
tm Pointer to struct to receive date values.

double gps::Gprmc::magneticVariation ( void   )  const

Gets the magnetic variation.

Returns:
magnetic variation value.

int gps::Gprmc::mode ( void   )  const

Gets mode indicator.

Returns:
mode.


The documentation for this class was generated from the following file:
Generated on Fri May 23 04:11:17 2008 for GPS Library by  doxygen 1.5.2