#include <GPS.h>
Public Types | |
| enum | { Static = 1, Quasi_Static = 2, Walking = 3, Ship = 4, Automobile = 5, Aircraft = 6 } |
Public Member Functions | |
| GPS (const char *serial, int noWait=1) | |
| Short Description. | |
| GPS (void) | |
| Short Description. | |
| int | init (float period=5.0, int dynamicMode=Quasi_Static) |
| Short Description. | |
| int | Read (void) |
| Short Description. | |
| int | hasPositions (void) |
| double | xPos (void) |
| double | yPos (void) |
| double | zPos (void) |
| int | hasVelocities (void) |
| double | xVel (void) |
| double | yVel (void) |
| double | zVel (void) |
| double | pDOP (void) |
| double | hDOP (void) |
| double | vDOP (void) |
| double | tDOP (void) |
| int | getNumSat (void) |
| double | getLatitude (void) |
| double | getLongitude (void) |
| const char * | getMsg (void) |
| int | getFD (void) |
| int | dispatchMsg (const char *msg) |
| Short Description. | |
| int | parsePOS (const char *msg) |
| Short Description. | |
| int | parseUTM (const char *msg) |
| Short Description. | |
| void | printData (void) |
| Short Description. | |
| ~GPS () | |
| Short Description. | |
Protected Member Functions | |
| int | readLine (void) |
| Short Description. | |
| int | writeLine (const char *msg) |
| Short Description. | |
| int | checkAck (void) |
| Short Description. | |
| float | cos (float f) |
| double | cos (double f) |
| float | sin (float f) |
| double | sin (double f) |
Protected Attributes | |
| char | msgbuf [200] |
| int | msglen |
| int | gps_fd |
| int | reading |
| int | using_file |
| int | numsat |
| char | NorS |
| char | EorW |
| double | latitude |
| double | longitude |
| double | altitude |
| double | x |
| double | y |
| double | z |
| double | hVelocity |
| double | vVelocity |
| double | direction |
| double | xvel |
| double | yvel |
| double | zvel |
| double | pdop |
| double | hdop |
| double | vdop |
| double | tdop |
| int | is_corrected |
| int | has_positions |
| int | has_velocities |
| int | nowait |
Static Protected Attributes | |
| static const double | minutes2radians = (M_PI / 180.0 / 60.0) |
| static const double | degrees2radians = (M_PI / 180.0f) |
| static const double | knots2mps = 0.5144444 |
| static double | invalid |
| static const double | earthRadius = 6378137.0f |
| static const double | zeroLatitude = 0.700076f |
| static const double | zeroLongitude = 1.53984f |
Private Member Functions | |
| void | initVars (void) |
| Short Description. | |
Long Description if necessary.
| <parameter_name> | <parameter_descreption> |
Definition at line 16 of file GPS.h.
|
|
|
|
||||||||||||
|
Short Description. Long Description if necessary.
Definition at line 47 of file GPS.cpp. References gps_fd, and initVars(). |
|
|
Short Description. Long Description if necessary.
Definition at line 33 of file GPS.cpp. References initVars(). |
|
|
Short Description. Long Description if necessary.
Definition at line 234 of file GPS.cpp. References gps_fd. |
|
|
Short Description. Long Description if necessary.
Definition at line 352 of file GPS.cpp. References msgbuf, and readLine(). Referenced by init(). |
|
|
|
|
|
Definition at line 133 of file GPS.h. Referenced by parsePOS(), and parseUTM(). |
|
|
Short Description. Long Description if necessary.
Definition at line 456 of file GPS.cpp. References msgbuf, parsePOS(), and parseUTM(). |
|
|
Definition at line 79 of file GPS.h. References gps_fd. Referenced by Daemon::run(). |
|
|
Definition at line 73 of file GPS.h. References latitude. Referenced by main(). |
|
|
Definition at line 74 of file GPS.h. References longitude. Referenced by main(). |
|
|
Definition at line 78 of file GPS.h. References msgbuf. Referenced by main(). |
|
|
Definition at line 71 of file GPS.h. References numsat. Referenced by main(), and recvData(). |
|
|
Definition at line 53 of file GPS.h. References has_positions. Referenced by main(), and Daemon::processGPS(). |
|
|
Definition at line 60 of file GPS.h. References has_velocities. Referenced by main(). |
|
|
Definition at line 66 of file GPS.h. References hdop. Referenced by main(). |
|
||||||||||||
|
Short Description. Long Description if necessary.
Definition at line 109 of file GPS.cpp. References checkAck(), gps_fd, msgbuf, and writeLine(). Referenced by Daemon::Daemon(), and main(). |
|
|
Short Description. Long Description if necessary.
Definition at line 206 of file GPS.cpp. References altitude, direction, gps_fd, has_positions, has_velocities, hdop, hVelocity, invalid, latitude, longitude, msgbuf, msglen, pdop, tdop, using_file, vdop, vVelocity, x, xvel, y, yvel, z, and zvel. Referenced by GPS(). |
|
|
Short Description. Long Description if necessary.
Definition at line 507 of file GPS.cpp. References altitude, cos(), degrees2radians, direction, earthRadius, EorW, has_positions, has_velocities, hdop, hVelocity, i, invalid, is_corrected, knots2mps, latitude, longitude, minutes2radians, NorS, numsat, pdop, sin(), tdop, vdop, vVelocity, x, xvel, y, yvel, z, zeroLatitude, and zeroLongitude. Referenced by dispatchMsg(). |
|
|
Short Description. Long Description if necessary.
Definition at line 671 of file GPS.cpp. References altitude, cos(), degrees2radians, direction, earthRadius, EorW, has_positions, has_velocities, hdop, hVelocity, i, invalid, is_corrected, knots2mps, latitude, longitude, minutes2radians, NorS, numsat, pdop, tdop, vdop, vVelocity, x, y, z, zeroLatitude, and zeroLongitude. Referenced by dispatchMsg(). |
|
|
Definition at line 65 of file GPS.h. References pdop. Referenced by main(). |
|
|
Short Description. Long Description if necessary.
Definition at line 827 of file GPS.cpp. References direction, EorW, has_positions, has_velocities, hdop, hVelocity, latitude, longitude, NorS, numsat, pdop, tdop, vdop, vVelocity, x, xvel, y, yvel, z, and zvel. Referenced by recvData(). |
|
|
Short Description. Long Description if necessary.
Definition at line 393 of file GPS.cpp. References dispatchMsg(), gps_fd, msgbuf, and msglen. Referenced by main(), Daemon::processGPS(), and recvData(). |
|
|
Short Description. Long Description if necessary.
Definition at line 258 of file GPS.cpp. References gps_fd, i, msgbuf, and msglen. Referenced by checkAck(). |
|
|
|
|
|
Definition at line 135 of file GPS.h. Referenced by parsePOS(). |
|
|
Definition at line 68 of file GPS.h. References tdop. Referenced by main(). |
|
|
Definition at line 67 of file GPS.h. References vdop. Referenced by main(). |
|
|
Short Description. Long Description if necessary.
Definition at line 312 of file GPS.cpp. Referenced by init(). |
|
|
Definition at line 54 of file GPS.h. References x. Referenced by main(), and Daemon::processGPS(). |
|
|
Definition at line 61 of file GPS.h. References xvel. Referenced by main(). |
|
|
Definition at line 55 of file GPS.h. References y. Referenced by main(), and Daemon::processGPS(). |
|
|
Definition at line 62 of file GPS.h. References yvel. Referenced by main(). |
|
|
Definition at line 56 of file GPS.h. References z. |
|
|
Definition at line 63 of file GPS.h. References zvel. |
|
|
Definition at line 108 of file GPS.h. Referenced by initVars(), parsePOS(), and parseUTM(). |
|
|
Definition at line 120 of file GPS.h. Referenced by parsePOS(), and parseUTM(). |
|
|
Definition at line 110 of file GPS.h. Referenced by initVars(), parsePOS(), parseUTM(), and printData(). |
|
|
Definition at line 123 of file GPS.h. Referenced by parsePOS(), and parseUTM(). |
|
|
Definition at line 107 of file GPS.h. Referenced by parsePOS(), parseUTM(), and printData(). |
|
|
Definition at line 101 of file GPS.h. Referenced by getFD(), GPS(), init(), initVars(), Read(), readLine(), writeLine(), and ~GPS(). |
|
|
Definition at line 116 of file GPS.h. Referenced by hasPositions(), initVars(), parsePOS(), parseUTM(), and printData(). |
|
|
Definition at line 116 of file GPS.h. Referenced by hasVelocities(), initVars(), parsePOS(), parseUTM(), and printData(). |
|
|
Definition at line 112 of file GPS.h. Referenced by hDOP(), initVars(), parsePOS(), parseUTM(), and printData(). |
|
|
Definition at line 110 of file GPS.h. Referenced by initVars(), parsePOS(), parseUTM(), and printData(). |
|
|
Definition at line 122 of file GPS.h. Referenced by initVars(), parsePOS(), and parseUTM(). |
|
|
Definition at line 115 of file GPS.h. Referenced by parsePOS(), and parseUTM(). |
|
|
Definition at line 121 of file GPS.h. Referenced by parsePOS(), and parseUTM(). |
|
|
Definition at line 108 of file GPS.h. Referenced by getLatitude(), initVars(), parsePOS(), parseUTM(), and printData(). |
|
|
Definition at line 108 of file GPS.h. Referenced by getLongitude(), initVars(), parsePOS(), parseUTM(), and printData(). |
|
|
Definition at line 119 of file GPS.h. Referenced by parsePOS(), and parseUTM(). |
|
|
Definition at line 99 of file GPS.h. Referenced by checkAck(), dispatchMsg(), getMsg(), init(), initVars(), Read(), and readLine(). |
|
|
Definition at line 100 of file GPS.h. Referenced by initVars(), Read(), and readLine(). |
|
|
Definition at line 107 of file GPS.h. Referenced by parsePOS(), parseUTM(), and printData(). |
|
|
|
|
|
Definition at line 106 of file GPS.h. Referenced by getNumSat(), parsePOS(), parseUTM(), and printData(). |
|
|
Definition at line 112 of file GPS.h. Referenced by initVars(), parsePOS(), parseUTM(), pDOP(), and printData(). |
|
|
|
|
|
Definition at line 112 of file GPS.h. Referenced by initVars(), parsePOS(), parseUTM(), printData(), and tDOP(). |
|
|
Definition at line 103 of file GPS.h. Referenced by initVars(). |
|
|
Definition at line 112 of file GPS.h. Referenced by initVars(), parsePOS(), parseUTM(), printData(), and vDOP(). |
|
|
Definition at line 110 of file GPS.h. Referenced by initVars(), parsePOS(), parseUTM(), and printData(). |
|
|
Definition at line 109 of file GPS.h. Referenced by initVars(), parsePOS(), parseUTM(), printData(), and xPos(). |
|
|
Definition at line 111 of file GPS.h. Referenced by initVars(), parsePOS(), printData(), and xVel(). |
|
|
Definition at line 109 of file GPS.h. Referenced by initVars(), parsePOS(), parseUTM(), printData(), and yPos(). |
|
|
Definition at line 111 of file GPS.h. Referenced by initVars(), parsePOS(), printData(), and yVel(). |
|
|
Definition at line 109 of file GPS.h. Referenced by initVars(), parsePOS(), parseUTM(), printData(), and zPos(). |
|
|
Definition at line 125 of file GPS.h. Referenced by parsePOS(), and parseUTM(). |
|
|
Definition at line 126 of file GPS.h. Referenced by parsePOS(), and parseUTM(). |
|
|
Definition at line 111 of file GPS.h. Referenced by initVars(), printData(), and zVel(). |
1.4.4