18#ifndef QGSGPSCONNECTION_H
19#define QGSGPSCONNECTION_H
64 double elevation = std::numeric_limits< double >::quiet_NaN();
78 double azimuth = std::numeric_limits< double >::quiet_NaN();
100 return id == other.
id &&
101 inUse == other.
inUse &&
145 double longitude = 0;
150 double elevation = 0;
158 double elevation_diff = 0;
170 double direction = std::numeric_limits< double >::quiet_NaN();
201 double hacc = std::numeric_limits< double >::quiet_NaN();
203 double vacc = std::numeric_limits< double >::quiet_NaN();
209 double hvacc = std::numeric_limits< double >::quiet_NaN();
253 int satellitesUsed = 0;
268 bool satInfoComplete =
false;
274 bool isValid()
const;
287 QString qualityDescription()
const;
304 if ( sipCpp->inherits(
"QgsGpsdConnection" ) )
305 sipType = sipType_QgsGpsdConnection;
306 else if ( sipCpp->inherits(
"QgsNmeaConnection" ) )
307 sipType = sipType_QgsNmeaConnection;
358 void cleanupSource();
359 void clearLastGPSInformation();
GpsQualityIndicator
GPS signal quality indicator.
Abstract base class for connection to a GPS device.
Status status() const
Returns the status. Possible state are not connected, connected, data received.
QgsGpsInformation mLastGPSInformation
Last state of the gps related variables (e.g. position, time, ...)
virtual void parseData()=0
Parse available data source content.
void nmeaSentenceReceived(const QString &substring)
std::unique_ptr< QIODevice > mSource
Data source (e.g. serial device, socket, file,...)
QgsGpsInformation currentGPSInformation() const
Returns the current gps information (lat, lon, etc.)
void stateChanged(const QgsGpsInformation &info)
Encapsulates information relating to a GPS satellite.
double elevation
Elevation of the satellite, in degrees.
bool inUse
true if satellite was used in obtaining the position fix.
bool operator!=(const QgsSatelliteInfo &other) const
int signal
Signal strength (0-99dB), or -1 if not available.
bool operator==(const QgsSatelliteInfo &other) const
int id
Contains the satellite identifier number.
double azimuth
The azimuth of the satellite to true north, in degrees.
QChar satType
satType value from NMEA message $GxGSV, where x: P = GPS; S = SBAS (GPSid> 32 then SBasid = GPSid + 8...
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)