AURobotServers
4
|
GPS latlon struct to hold the GPS fix information in the latitude/lontitude system. More...
#include <uresgps.h>
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... | |
GPS latlon struct to hold the GPS fix information in the latitude/lontitude system.
|
inline |
Constructor
References UGpsStatus::clear().
void UGpsLatLong::clear | ( | void | ) |
Clear the structure
References ULock::lock(), and ULock::unlock().
bool UGpsLatLong::parseGPGGA | ( | char * | inBuff, |
UTime | lastTime | ||
) |
Parse the GPRMC message
[in] | *inBuf | Pointer to the string to be parsed. |
[in] | *lastTime | is the last time data were received, to reconstruct date (also for replay). |
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
[in] | *inBuf | Pointer to the string to be parsed. |
[in] | *lastTime | is the last time data were received, to reconstruct date (also for replay). |
References UTime::getTimeTm(), GPS_SENTENCE_MAX_LENGTH, KNOTS2M_S, ULock::lock(), UGpsStatus::sentence, and ULock::unlock().
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.