QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
Encapsulates information relating to a GPS position fix. More...
#include <qgsgpsconnection.h>
Public Types | |
enum | FixStatus { NoData , NoFix , Fix2D , Fix3D } |
GPS fix status. More... | |
Public Member Functions | |
FixStatus | fixStatus () const |
Returns the fix status. More... | |
bool | isValid () const |
Returns whether the connection information is valid. More... | |
QString | qualityDescription () const |
Returns a descriptive string for the signal quality. More... | |
Public Attributes | |
double | direction = std::numeric_limits< double >::quiet_NaN() |
The bearing measured in degrees clockwise from true north to the direction of travel. More... | |
double | elevation = 0 |
Altitude (in meters) above or below the mean sea level. More... | |
double | elevation_diff = 0 |
Geoidal separation (Diff. More... | |
QChar | fixMode |
Fix mode (where M = Manual, forced to operate in 2D or 3D or A = Automatic, 3D/2D) More... | |
int | fixType = 0 |
Contains the fix type, where 1 = no fix, 2 = 2d fix, 3 = 3d fix. More... | |
double | hacc = std::numeric_limits< double >::quiet_NaN() |
Horizontal accuracy in meters. More... | |
double | hdop = 0 |
Horizontal dilution of precision. More... | |
double | hvacc = std::numeric_limits< double >::quiet_NaN() |
3D RMS More... | |
double | latitude = 0 |
Latitude in decimal degrees, using the WGS84 datum. More... | |
double | longitude = 0 |
Longitude in decimal degrees, using the WGS84 datum. More... | |
double | pdop = 0 |
Dilution of precision. More... | |
int | quality = -1 |
GPS quality indicator (0 = Invalid; 1 = Fix; 2 = Differential, 3 = Sensitive) More... | |
QList< QgsSatelliteInfo > | satellitesInView |
Contains a list of information relating to the current satellites in view. More... | |
int | satellitesUsed = 0 |
Count of satellites used in obtaining the fix. More... | |
bool | satInfoComplete = false |
true if satellite information is complete. More... | |
QList< int > | satPrn |
IDs of satellites used in the position fix. More... | |
double | speed = 0 |
Ground speed, in km/h. More... | |
QChar | status |
Status (A = active or V = void) More... | |
QDateTime | utcDateTime |
The date and time at which this position was reported, in UTC time. More... | |
double | vacc = std::numeric_limits< double >::quiet_NaN() |
Vertical accuracy in meters. More... | |
double | vdop = 0 |
Vertical dilution of precision. More... | |
Encapsulates information relating to a GPS position fix.
Definition at line 98 of file qgsgpsconnection.h.
GPS fix status.
Enumerator | |
---|---|
NoData | |
NoFix | |
Fix2D | |
Fix3D |
Definition at line 106 of file qgsgpsconnection.h.
QgsGpsInformation::FixStatus QgsGpsInformation::fixStatus | ( | ) | const |
bool QgsGpsInformation::isValid | ( | ) | const |
Returns whether the connection information is valid.
Definition at line 31 of file qgsgpsconnection.cpp.
QString QgsGpsInformation::qualityDescription | ( | ) | const |
Returns a descriptive string for the signal quality.
Definition at line 70 of file qgsgpsconnection.cpp.
double QgsGpsInformation::direction = std::numeric_limits< double >::quiet_NaN() |
The bearing measured in degrees clockwise from true north to the direction of travel.
Definition at line 149 of file qgsgpsconnection.h.
double QgsGpsInformation::elevation = 0 |
Altitude (in meters) above or below the mean sea level.
Definition at line 129 of file qgsgpsconnection.h.
double QgsGpsInformation::elevation_diff = 0 |
Geoidal separation (Diff.
between WGS-84 earth ellipsoid and mean sea level.
Definition at line 137 of file qgsgpsconnection.h.
QChar QgsGpsInformation::fixMode |
Fix mode (where M = Manual, forced to operate in 2D or 3D or A = Automatic, 3D/2D)
Definition at line 210 of file qgsgpsconnection.h.
int QgsGpsInformation::fixType = 0 |
Contains the fix type, where 1 = no fix, 2 = 2d fix, 3 = 3d fix.
Definition at line 215 of file qgsgpsconnection.h.
double QgsGpsInformation::hacc = std::numeric_limits< double >::quiet_NaN() |
Horizontal accuracy in meters.
Definition at line 180 of file qgsgpsconnection.h.
double QgsGpsInformation::hdop = 0 |
Horizontal dilution of precision.
Definition at line 171 of file qgsgpsconnection.h.
double QgsGpsInformation::hvacc = std::numeric_limits< double >::quiet_NaN() |
double QgsGpsInformation::latitude = 0 |
Latitude in decimal degrees, using the WGS84 datum.
A positive value indicates the Northern Hemisphere, and a negative value indicates the Southern Hemisphere.
Definition at line 118 of file qgsgpsconnection.h.
double QgsGpsInformation::longitude = 0 |
Longitude in decimal degrees, using the WGS84 datum.
A positive value indicates the Eastern Hemisphere, and a negative value indicates the Western Hemisphere.
Definition at line 124 of file qgsgpsconnection.h.
double QgsGpsInformation::pdop = 0 |
Dilution of precision.
Definition at line 166 of file qgsgpsconnection.h.
int QgsGpsInformation::quality = -1 |
GPS quality indicator (0 = Invalid; 1 = Fix; 2 = Differential, 3 = Sensitive)
Definition at line 220 of file qgsgpsconnection.h.
QList<QgsSatelliteInfo> QgsGpsInformation::satellitesInView |
Contains a list of information relating to the current satellites in view.
Definition at line 161 of file qgsgpsconnection.h.
int QgsGpsInformation::satellitesUsed = 0 |
Count of satellites used in obtaining the fix.
Definition at line 225 of file qgsgpsconnection.h.
bool QgsGpsInformation::satInfoComplete = false |
true
if satellite information is complete.
Definition at line 240 of file qgsgpsconnection.h.
QList<int> QgsGpsInformation::satPrn |
IDs of satellites used in the position fix.
Definition at line 235 of file qgsgpsconnection.h.
double QgsGpsInformation::speed = 0 |
Ground speed, in km/h.
Definition at line 142 of file qgsgpsconnection.h.
QChar QgsGpsInformation::status |
Status (A = active or V = void)
Definition at line 230 of file qgsgpsconnection.h.
QDateTime QgsGpsInformation::utcDateTime |
The date and time at which this position was reported, in UTC time.
Definition at line 205 of file qgsgpsconnection.h.
double QgsGpsInformation::vacc = std::numeric_limits< double >::quiet_NaN() |
Vertical accuracy in meters.
Definition at line 182 of file qgsgpsconnection.h.
double QgsGpsInformation::vdop = 0 |
Vertical dilution of precision.
Definition at line 176 of file qgsgpsconnection.h.