6 #ifndef VRPN_TRACKER_GPS_H 7 #define VRPN_TRACKER_GPS_H 13 #include "gpsnmealib/nmeaParser.h" 14 #include "gpsnmealib/utmCoord.h" 26 const char *port =
"/dev/ttyS1",
30 const char* startStr =
"RMC");
vrpn_Tracker_GPS(const char *name, vrpn_Connection *c, const char *port="/dev/ttyS1", long baud=4800, int utmFlag=1, int testFileFlag=0, const char *startStr="RMC")
struct timeval reset_time
virtual void reset()
Reset the tracker.
Generic connection class not specific to the transport mechanism.
unsigned char buffer[VRPN_TRACKER_BUF_SIZE *10]
This function should be called each time through the main loop of the server code. It polls for a report from the tracker and sends it if there is one. It will reset the tracker if there is no data from it for a few seconds.
virtual int get_report(void)
Gets a report if one is available, returns 0 if not, 1 if complete report.
#define VRPN_TRACKER_BUF_SIZE