AURobotServers  4
Public Member Functions | Public Attributes | List of all members
UGpsLatLong Class Reference

GPS latlon struct to hold the GPS fix information in the latitude/lontitude system. More...

#include <uresgps.h>

Inheritance diagram for UGpsLatLong:
Inheritance graph

Public Member Functions

void clear ()
 
bool parseGPGGA (char *inBuff, UTime lastTime)
 
bool parseGPRMC (char *inBuf, UTime lastTime)
 
 UGpsLatLong ()
 
- Public Member Functions inherited from ULock
bool lock ()
 
void lockInit ()
 
void post ()
 
bool tryLock ()
 
bool tryWait ()
 
 ULock ()
 
void unlock ()
 
bool wait ()
 
 ~ULock ()
 

Public Attributes

float dop
 Dillution of Precision for the fix. More...
 
char east_lon
 Direction of the lontitude. More...
 
bool egnos
 Has the fix used the EGNOS correction. More...
 
UTime gmt
 GMT time, as reported by the message (date may be reconstructed) More...
 
float heading
 Heading of the reciever (0-360 deg) More...
 
double height
 Antenna height data (geoid height) More...
 
int height2
 Height differential between an ellipsion and geoid. More...
 
double latDeg
 Latitude coordinate in decimal degrees, with North as positive. More...
 
double longDeg
 Lontitude coordinate in decimal degrees, with East as positive. More...
 
char north_lat
 Direction of the latitude. More...
 
int quality
 Show the quality of the fix (No gps/gps/dgps) More...
 
int satellites
 Show the nuber of satellites used in the fix. More...
 
char sentence [GPS_SENTENCE_MAX_LENGTH]
 last message received More...
 
float speed
 Speed of the reciever (m/s) More...
 
bool valid
 Show if the fix is valid. More...
 

Detailed Description

GPS latlon struct to hold the GPS fix information in the latitude/lontitude system.

Constructor & Destructor Documentation

UGpsLatLong::UGpsLatLong ( )
inline

Constructor

References UGpsStatus::clear().

Member Function Documentation

void UGpsLatLong::clear ( void  )

Clear the structure

References ULock::lock(), and ULock::unlock().

bool UGpsLatLong::parseGPGGA ( char *  inBuff,
UTime  lastTime 
)

Parse the GPRMC message

Parameters
[in]*inBufPointer to the string to be parsed.
[in]*lastTimeis the last time data were received, to reconstruct date (also for replay).
Returns
true on succes

References UTime::getTimeTm(), GPS_SENTENCE_MAX_LENGTH, ULock::lock(), UTime::now(), UGpsStatus::sentence, and ULock::unlock().

bool UGpsLatLong::parseGPRMC ( char *  inBuf,
UTime  lastTime 
)

Parse the GPRMC message

Parameters
[in]*inBufPointer to the string to be parsed.
[in]*lastTimeis the last time data were received, to reconstruct date (also for replay).
Returns
true on succes

References UTime::getTimeTm(), GPS_SENTENCE_MAX_LENGTH, KNOTS2M_S, ULock::lock(), UGpsStatus::sentence, and ULock::unlock().

Member Data Documentation

float UGpsLatLong::dop

Dillution of Precision for the fix.

char UGpsLatLong::east_lon

Direction of the lontitude.

bool UGpsLatLong::egnos

Has the fix used the EGNOS correction.

UTime UGpsLatLong::gmt

GMT time, as reported by the message (date may be reconstructed)

float UGpsLatLong::heading

Heading of the reciever (0-360 deg)

double UGpsLatLong::height

Antenna height data (geoid height)

int UGpsLatLong::height2

Height differential between an ellipsion and geoid.

double UGpsLatLong::latDeg

Latitude coordinate in decimal degrees, with North as positive.

double UGpsLatLong::longDeg

Lontitude coordinate in decimal degrees, with East as positive.

char UGpsLatLong::north_lat

Direction of the latitude.

int UGpsLatLong::quality

Show the quality of the fix (No gps/gps/dgps)

int UGpsLatLong::satellites

Show the nuber of satellites used in the fix.

char UGpsLatLong::sentence[GPS_SENTENCE_MAX_LENGTH]

last message received

float UGpsLatLong::speed

Speed of the reciever (m/s)

bool UGpsLatLong::valid

Show if the fix is valid.


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