QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
18 #ifndef QGSGPSCONNECTION_H
19 #define QGSGPSCONNECTION_H
26 #include "qgis_core.h"
64 double elevation = std::numeric_limits< double >::quiet_NaN();
78 double azimuth = std::numeric_limits< double >::quiet_NaN();
94 return id == other.
id &&
95 inUse == other.
inUse &&
138 double longitude = 0;
143 double elevation = 0;
151 double elevation_diff = 0;
163 double direction = std::numeric_limits< double >::quiet_NaN();
193 double hacc = std::numeric_limits< double >::quiet_NaN();
196 double vacc = std::numeric_limits< double >::quiet_NaN();
202 double hvacc = std::numeric_limits< double >::quiet_NaN();
246 int satellitesUsed = 0;
261 bool satInfoComplete =
false;
267 bool isValid()
const;
280 QString qualityDescription()
const;
297 if ( sipCpp->inherits(
"QgsGpsdConnection" ) )
298 sipType = sipType_QgsGpsdConnection;
299 else if ( sipCpp->inherits(
"QgsNmeaConnection" ) )
300 sipType = sipType_QgsNmeaConnection;
339 void nmeaSentenceReceived(
const QString &substring );
351 void cleanupSource();
352 void clearLastGPSInformation();
356 virtual void parseData() = 0;
359 #endif // QGSGPSCONNECTION_H
GpsQualityIndicator
GPS signal quality indicator.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsSatelliteInfo &other) const
QgsGpsInformation currentGPSInformation() const
Returns the current gps information (lat, lon, etc.)
Encapsulates information relating to a GPS satellite.
Status status() const
Returns the status. Possible state are not connected, connected, data received.
int signal
Signal strength (0-99dB), or -1 if not available.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
std::unique_ptr< QIODevice > mSource
Data source (e.g. serial device, socket, file,...)
double elevation
Elevation of the satellite, in degrees.
bool inUse
true if satellite was used in obtaining the position fix.
QgsGpsInformation mLastGPSInformation
Last state of the gps related variables (e.g. position, time, ...)
int id
Contains the satellite identifier number.
double azimuth
The azimuth of the satellite to true north, in degrees.
Abstract base class for connection to a GPS device.
bool operator==(const QgsSatelliteInfo &other) const