gps::Gpvtg Class Reference

#include <nmea0183.h>

Inheritance diagram for gps::Gpvtg:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Track made good and ground speed sentence.


Public Member Functions

 Gpvtg (const char sentence[])
 Constructs a GPVTG sentence.
double trueCourse (void) const
 Gets the true course over ground.
double magneticCourse (void) const
 Gets the magnetic course over ground.
double speedKnots (void) const
 Gets the speed over ground in knots.
double speedKmph (void) const
 Gets the speed over ground in kilometers per hour.


Constructor & Destructor Documentation

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

Constructs a GPVTG sentence.

Parameters:
sentence pointer to string sentence.


Member Function Documentation

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

Gets the true course over ground.

Returns:
True course over ground.

double gps::Gpvtg::magneticCourse ( void   )  const

Gets the magnetic course over ground.

Returns:
Magnetic course over ground.

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

Gets the speed over ground in knots.

Returns:
Speed over ground in knots.

double gps::Gpvtg::speedKmph ( void   )  const

Gets the speed over ground in kilometers per hour.

Returns:
Speed over ground in kilometers per hour.


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