16 lines
356 B
C++
16 lines
356 B
C++
#ifndef FM_PARSE_GPS_H
|
|
#define FM_PARSE_GPS_H
|
|
|
|
#include "rm_sensordata.h"
|
|
|
|
#define NMEA_TOKEN_SIZE 51
|
|
class FMParseGPS
|
|
{
|
|
public:
|
|
static bool ParseRMC(char szSentence[], NMEA_INFO* data, int nPacketSize);
|
|
private:
|
|
static char* _GetNextToken(char* lpSentence, char* lpToken, int iTokenSize = NMEA_TOKEN_SIZE);
|
|
};
|
|
|
|
#endif // FM_PARSE_GPS_H
|