#include <cphidgetgps.h>
Public Member Functions | |
int (CCONV *fptrPositionChange)(CPhidgetGPSHandle | |
int (CCONV *fptrPositionFixStatusChange)(CPhidgetGPSHandle | |
Public Attributes | |
void double double double | altitude |
double | altitude |
unsigned char | fix |
void * | fptrPositionChangeptr |
void * | fptrPositionFixStatusChangeptr |
NMEAData | GPSData |
unsigned char | haveDate |
unsigned char | haveTime |
double | heading |
double | lastAltitude |
unsigned char | lastFix |
double | lastLatitude |
double | lastLongitude |
void double | latitude |
double | latitude |
void double double | longitude |
double | longitude |
CPhidget | phid |
unsigned char | sckbuf [256] |
unsigned char | sckbuf_read |
unsigned char | sckbuf_write |
void int | status |
double | velocity |
Gets the current latitude.
phid | An attached phidget gps handle. |
latitude | The latitude. Gets the current longitude. |
phid | An attached phidget gps handle. |
longitude | The longitude. Gets the current altitude, in meters. |
phid | An attached phidget gps handle. |
altitude | The altitude. Gets the current heading, in degrees. |
phid | An attached phidget gps handle. |
heading | The heading. Gets the current velocity, in km/h. |
phid | An attached phidget gps handle. |
velocity | The velocity. Gets the current GPS time, in UTC. |
phid | An attached phidget gps handle. |
time | The GPS time. Gets the current GPS date, in UTC |
phid | An attached phidget gps handle. |
date | The GPS date. Gets the position fix status. |
phid | An attached phidget gps handle. |
fixStatus | The fix status. Gets Raw NMEA Data. This function is only available in the C API, and cannot be used over the webservice. The NMEA data reference points to a structure which is updated dynamically as data comes in - if you wish to work with the data statically, you must make a local copy. This should be done from within a position change event handler to avoid the structure changing as you read it. |
phid | An attached phidget gps handle. |
data | The NMEA Data. Sets a position change event handler. This is called when any of latitude, longitude, or altitude change. |
phid | A phidget gps handle. |
fptr | Callback function pointer. |
userPtr | A pointer for use by the user - this value is passed back into the callback function. Sets a position fix status change event handler. This is called when a position fix is aquired or lost. |
phid | A phidget gps handle. |
fptr | Callback function pointer. |
userPtr | A pointer for use by the user - this value is passed back into the callback function. |
Definition at line 206 of file cphidgetgps.h.
CPhidgetGPSInfo::int | ( | CCONV * | fptrPositionChange | ) |
CPhidgetGPSInfo::int | ( | CCONV * | fptrPositionFixStatusChange | ) |
void double double double CPhidgetGPSInfo::altitude |
Definition at line 209 of file cphidgetgps.h.
double CPhidgetGPSInfo::altitude |
Definition at line 216 of file cphidgetgps.h.
unsigned char CPhidgetGPSInfo::fix |
Definition at line 217 of file cphidgetgps.h.
Definition at line 210 of file cphidgetgps.h.
Definition at line 212 of file cphidgetgps.h.
Definition at line 214 of file cphidgetgps.h.
unsigned char CPhidgetGPSInfo::haveDate |
Definition at line 219 of file cphidgetgps.h.
unsigned char CPhidgetGPSInfo::haveTime |
Definition at line 219 of file cphidgetgps.h.
double CPhidgetGPSInfo::heading |
Definition at line 216 of file cphidgetgps.h.
Definition at line 221 of file cphidgetgps.h.
unsigned char CPhidgetGPSInfo::lastFix |
Definition at line 222 of file cphidgetgps.h.
Definition at line 221 of file cphidgetgps.h.
Definition at line 221 of file cphidgetgps.h.
void double CPhidgetGPSInfo::latitude |
Definition at line 209 of file cphidgetgps.h.
double CPhidgetGPSInfo::latitude |
Definition at line 216 of file cphidgetgps.h.
void double double CPhidgetGPSInfo::longitude |
Definition at line 209 of file cphidgetgps.h.
double CPhidgetGPSInfo::longitude |
Definition at line 216 of file cphidgetgps.h.
Definition at line 207 of file cphidgetgps.h.
unsigned char CPhidgetGPSInfo::sckbuf[256] |
Definition at line 224 of file cphidgetgps.h.
unsigned char CPhidgetGPSInfo::sckbuf_read |
Definition at line 225 of file cphidgetgps.h.
unsigned char CPhidgetGPSInfo::sckbuf_write |
Definition at line 225 of file cphidgetgps.h.
Definition at line 211 of file cphidgetgps.h.
double CPhidgetGPSInfo::velocity |
Definition at line 216 of file cphidgetgps.h.