2015-07-29 11:52:14 +02:00
|
|
|
/** Evaluates NMEA sentences coming from a GPS device*/
|
2012-09-24 02:28:15 +02:00
|
|
|
class QgsNMEAConnection: QgsGPSConnection {
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsnmeaconnection.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
QgsNMEAConnection( QIODevice *dev );
|
|
|
|
~QgsNMEAConnection();
|
|
|
|
|
|
|
|
protected slots:
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Parse available data source content*/
|
2012-09-24 02:28:15 +02:00
|
|
|
void parseData();
|
|
|
|
|
|
|
|
protected:
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Splits mStringBuffer into sentences and calls libnmea*/
|
2012-09-24 02:28:15 +02:00
|
|
|
void processStringBuffer();
|
|
|
|
//handle the different sentence type
|
2017-05-01 18:13:15 +02:00
|
|
|
void processGGASentence( const char *data, int len );
|
|
|
|
void processRMCSentence( const char *data, int len );
|
|
|
|
void processGSVSentence( const char *data, int len );
|
|
|
|
void processVTGSentence( const char *data, int len );
|
|
|
|
void processGSASentence( const char *data, int len );
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|