Data received from the GPS unit. More...
#include <Devices/GPS.H>
Public Member Functions | |
GPSdata () | |
Constructor with empty data (indicated by fix type 0). | |
void | toString (char *str, const int siz) const |
Convert to string. | |
bool | fromString (const char *str) |
Convert from string. | |
Public Attributes | |
byte | fixtype |
fix type (0=none/invalid data, 1=2D, 2=3D) | |
byte | nsat |
Number of satellites in use (0..12). | |
byte | fixho |
UTC time of fix, hours. | |
byte | fixmi |
UTC time of fix, minutes. | |
byte | fixse |
UTC time of fix, seconds. | |
byte | fixda |
UTC date of fix, day. | |
byte | fixmo |
UTC date of fix, month. | |
int | fixye |
UTC date of fix, year. | |
double | latitude |
latitude (>=0 for North) | |
double | longitude |
longitude (>=0 for East) | |
float | galtitude |
GPS-derived altitude, in meters. | |
float | altitude |
pressure-sensor derived altitude, in meters | |
float | speed |
course speed, in km/h | |
float | heading |
heading, true, in deg | |
float | magvar |
magnetic variation, deg (add to true for mag heading) | |
float | pdil |
Precision dilution on position (smaller is better). | |
float | hdil |
Horiz precision dilution (smaller is better). | |
float | vdil |
Vertic precision dilution (smaller is better). | |
float | epe |
Estimated position error, in meters. | |
float | hpe |
Estimated horiz position error, in meters. | |
float | vpe |
Estimated vertic position error, in meters. |
Data received from the GPS unit.
Definition at line 46 of file GPS.H.
GPSdata::GPSdata | ( | ) |
bool GPSdata::fromString | ( | const char * | str | ) |
void GPSdata::toString | ( | char * | str, | |
const int | siz | |||
) | const |
Convert to string.
At least siz bytes should have been pre-allocated to str
Definition at line 53 of file GPS.C.
References altitude, epe, fixda, fixho, fixmi, fixmo, fixse, fixtype, fixye, galtitude, hdil, heading, hpe, latitude, longitude, magvar, nsat, pdil, speed, vdil, and vpe.
Referenced by TestGPSlistener::newData().
float GPSdata::altitude |
pressure-sensor derived altitude, in meters
Definition at line 65 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
float GPSdata::epe |
Estimated position error, in meters.
Definition at line 74 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
UTC date of fix, day.
Definition at line 58 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
UTC time of fix, hours.
Definition at line 55 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
UTC time of fix, minutes.
Definition at line 56 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
UTC date of fix, month.
Definition at line 59 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
UTC time of fix, seconds.
Definition at line 57 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
fix type (0=none/invalid data, 1=2D, 2=3D)
Definition at line 51 of file GPS.H.
Referenced by fromString(), GPSdata(), GPS::run(), and toString().
int GPSdata::fixye |
UTC date of fix, year.
Definition at line 60 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
float GPSdata::galtitude |
GPS-derived altitude, in meters.
Definition at line 64 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
float GPSdata::hdil |
Horiz precision dilution (smaller is better).
Definition at line 71 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
float GPSdata::heading |
heading, true, in deg
Definition at line 67 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
float GPSdata::hpe |
Estimated horiz position error, in meters.
Definition at line 75 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
double GPSdata::latitude |
latitude (>=0 for North)
Definition at line 62 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
double GPSdata::longitude |
longitude (>=0 for East)
Definition at line 63 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
float GPSdata::magvar |
magnetic variation, deg (add to true for mag heading)
Definition at line 68 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
Number of satellites in use (0..12).
Definition at line 53 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
float GPSdata::pdil |
Precision dilution on position (smaller is better).
Definition at line 70 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
float GPSdata::speed |
course speed, in km/h
Definition at line 66 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
float GPSdata::vdil |
Vertic precision dilution (smaller is better).
Definition at line 72 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().
float GPSdata::vpe |
Estimated vertic position error, in meters.
Definition at line 76 of file GPS.H.
Referenced by fromString(), GPS::run(), and toString().