mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
From the nmea specifications it is clear that the talker ID does not have to start with 'G'. Accordingly remove ALL these incorrect hardcoded checks against (a very small subset) of known talker IDs, and permit any two-character string as a valid talker ID Fixes connection to NMEA devices which use "IN" for talker ID (and others)
83 lines
2.4 KiB
Plaintext
83 lines
2.4 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/gps/qgsnmeaconnection.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
class QgsNmeaConnection: QgsGpsConnection
|
|
{
|
|
%Docstring(signature="appended")
|
|
Evaluates NMEA sentences coming from a GPS device
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsnmeaconnection.h"
|
|
%End
|
|
public:
|
|
|
|
QgsNmeaConnection( QIODevice *device /Transfer/ );
|
|
%Docstring
|
|
Constructs a QgsNmeaConnection with given ``device``.
|
|
|
|
Ownership of ``device`` is transferred to the connection.
|
|
%End
|
|
|
|
protected slots:
|
|
virtual void parseData();
|
|
|
|
%Docstring
|
|
Parse available data source content
|
|
%End
|
|
|
|
protected:
|
|
void processStringBuffer();
|
|
%Docstring
|
|
Splits mStringBuffer into sentences and calls libnmea
|
|
%End
|
|
void processGgaSentence( const char *data, int len );
|
|
%Docstring
|
|
process GGA sentence
|
|
%End
|
|
void processRmcSentence( const char *data, int len );
|
|
%Docstring
|
|
process RMC sentence
|
|
%End
|
|
void processGsvSentence( const char *data, int len );
|
|
%Docstring
|
|
process GSV sentence
|
|
%End
|
|
void processVtgSentence( const char *data, int len );
|
|
%Docstring
|
|
process VTG sentence
|
|
%End
|
|
void processGsaSentence( const char *data, int len );
|
|
%Docstring
|
|
process GSA sentence
|
|
%End
|
|
void processGstSentence( const char *data, int len );
|
|
%Docstring
|
|
process GST sentence
|
|
%End
|
|
void processHdtSentence( const char *data, int len );
|
|
%Docstring
|
|
process HDT sentence
|
|
%End
|
|
void processHchdgSentence( const char *data, int len );
|
|
%Docstring
|
|
process HCHDG sentence
|
|
%End
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/gps/qgsnmeaconnection.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|