mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
26 lines
759 B
Plaintext
26 lines
759 B
Plaintext
/**Evaluates NMEA sentences coming from a GPS device*/
|
|
class QgsNMEAConnection: QgsGPSConnection {
|
|
%TypeHeaderCode
|
|
#include "qgsnmeaconnection.h"
|
|
%End
|
|
public:
|
|
QgsNMEAConnection(QIODevice *dev);
|
|
~QgsNMEAConnection();
|
|
|
|
//bool poll( QgsGPSInformation& info, int maxTime );
|
|
|
|
protected slots:
|
|
/**Parse available data source content*/
|
|
void parseData();
|
|
|
|
protected:
|
|
/**Splits mStringBuffer into sentences and calls libnmea*/
|
|
void processStringBuffer();
|
|
//handle the different sentence type
|
|
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);
|
|
};
|