33 #include "NMEAParser.h" 34 #include "mogi/thread.h" 36 #include "panda/gps.h" 37 #include "panda/usb.h" 38 #include "panda/gpsdata.h" 91 void saveToFile(
const char* filename);
97 void saveToCsvFile(
const char* filename);
127 bool currentlyReceiving =
false;
129 std::ofstream nmeaDump;
132 void writeCsvToFile(
GpsData& state);
134 std::vector<GpsListener*> listeners;
135 Usb* usbHandler = NULL;
141 void notificationUartRead(
char* buffer,
size_t bufferLength);
144 virtual void OnError(CNMEAParserData::ERROR_E nError,
char *pCmd);
146 virtual CNMEAParserData::ERROR_E ProcessRxCommand(
char *pCmd,
char *pData);
Handles USB communication and parsing with a comma.ai Panda.
Definition: can.h:38
Abstract class, handles a single thread. Features mutual exclusion and pause/resume.
Definition: thread.h:27
Definition: gpsdata.h:143
virtual void newDataNotification(GpsData *gpsData)=0
Called on a successful RMC message parse Overload this to get instant updates form freshly parsed NME...
A class that handles the GPS data.
Definition: gps.h:74
An abstract class for new data notifications for new GPS data.
Definition: gps.h:50