|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
Encapsulates information relating to a GPS position fix. More...
#include <qgsgpsinformation.h>
Public Member Functions | |
| Qgis::GpsFixStatus | bestFixStatus (Qgis::GnssConstellation &constellation) const |
| Returns the best fix status and corresponding constellation. | |
| QVariant | componentValue (Qgis::GpsInformationComponent component) const |
| Returns the value of the corresponding GPS information component. | |
| QMap< Qgis::GnssConstellation, Qgis::GpsFixStatus > | constellationFixStatus () const |
| Returns a map of GNSS constellation to fix status. | |
| Q_DECL_DEPRECATED Qgis::GpsFixStatus | fixStatus () const |
| Returns the fix status. | |
| bool | isValid () const |
| Returns whether the connection information is valid. | |
| Qgis::GpsNavigationStatus | navigationStatus () const |
| Returns the navigation status. | |
| QString | qualityDescription () const |
| Returns a descriptive string for the signal quality. | |
| void | setNavigationStatus (Qgis::GpsNavigationStatus status) |
| Sets the navigation status. | |
Public Attributes | |
| double | direction = std::numeric_limits< double >::quiet_NaN() |
| The bearing measured in degrees clockwise from true north to the direction of travel. | |
| double | elevation = 0 |
| Altitude (in meters) above or below the mean sea level. | |
| double | elevation_diff = 0 |
| Geoidal separation (in meters). | |
| QChar | fixMode |
| Fix mode (where M = Manual, forced to operate in 2D or 3D or A = Automatic, 3D/2D). | |
| int | fixType = 0 |
| Contains the fix type, where 1 = no fix, 2 = 2d fix, 3 = 3d fix. | |
| double | hacc = std::numeric_limits< double >::quiet_NaN() |
| Horizontal accuracy in meters. | |
| double | hdop = 0 |
| Horizontal dilution of precision. | |
| double | hvacc = std::numeric_limits< double >::quiet_NaN() |
| 3D RMS | |
| double | latitude = 0 |
| Latitude in decimal degrees, using the WGS84 datum. | |
| double | longitude = 0 |
| Longitude in decimal degrees, using the WGS84 datum. | |
| double | pdop = 0 |
| Dilution of precision. | |
| int | quality = -1 |
| GPS quality indicator (0 = Invalid; 1 = Fix; 2 = Differential, 3 = Sensitive, etc.). | |
| Qgis::GpsQualityIndicator | qualityIndicator = Qgis::GpsQualityIndicator::Unknown |
| Returns the signal quality indicator. | |
| QList< QgsSatelliteInfo > | satellitesInView |
| Contains a list of information relating to the current satellites in view. | |
| int | satellitesUsed = 0 |
| Count of satellites used in obtaining the fix. | |
| bool | satInfoComplete = false |
true if satellite information is complete. | |
| QList< int > | satPrn |
| IDs of satellites used in the position fix. | |
| double | speed = 0 |
| Ground speed, in km/h. | |
| QChar | status |
| Status (A = active or V = void). | |
| QDateTime | utcDateTime |
| The date and time at which this position was reported, in UTC time. | |
| QTime | utcTime |
| The time at which this position was reported, in UTC time. | |
| double | vacc = std::numeric_limits< double >::quiet_NaN() |
| Vertical accuracy in meters. | |
| double | vdop = 0 |
| Vertical dilution of precision. | |
Friends | |
| class | QgsNmeaConnection |
| class | QgsQtLocationConnection |
Encapsulates information relating to a GPS position fix.
Definition at line 34 of file qgsgpsinformation.h.
| Qgis::GpsFixStatus QgsGpsInformation::bestFixStatus | ( | Qgis::GnssConstellation & | constellation | ) | const |
Returns the best fix status and corresponding constellation.
| constellation | will be set to the constellation with best fix status |
Definition at line 25 of file qgsgpsinformation.cpp.
| QVariant QgsGpsInformation::componentValue | ( | Qgis::GpsInformationComponent | component | ) | const |
Returns the value of the corresponding GPS information component.
Definition at line 123 of file qgsgpsinformation.cpp.
|
inline |
Returns a map of GNSS constellation to fix status.
Definition at line 161 of file qgsgpsinformation.h.
| Qgis::GpsFixStatus QgsGpsInformation::fixStatus | ( | ) | const |
Returns the fix status.
Definition at line 66 of file qgsgpsinformation.cpp.
| bool QgsGpsInformation::isValid | ( | ) | const |
Returns whether the connection information is valid.
Definition at line 43 of file qgsgpsinformation.cpp.
|
inline |
Returns the navigation status.
Definition at line 212 of file qgsgpsinformation.h.
| QString QgsGpsInformation::qualityDescription | ( | ) | const |
Returns a descriptive string for the signal quality.
Definition at line 86 of file qgsgpsinformation.cpp.
|
inline |
Sets the navigation status.
Definition at line 221 of file qgsgpsinformation.h.
|
friend |
Definition at line 254 of file qgsgpsinformation.h.
|
friend |
Definition at line 255 of file qgsgpsinformation.h.
| 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 80 of file qgsgpsinformation.h.
| double QgsGpsInformation::elevation = 0 |
Altitude (in meters) above or below the mean sea level.
Definition at line 53 of file qgsgpsinformation.h.
| double QgsGpsInformation::elevation_diff = 0 |
Geoidal separation (in meters).
The difference between the WGS-84 Earth ellipsoid and the mean sea level (geoid).
Negative values indicate that mean sea level is below the ellipsoid.
This value can be added to the (geoid) elevation value to obtain the ellipsoid elevation.
Definition at line 68 of file qgsgpsinformation.h.
| QChar QgsGpsInformation::fixMode |
Fix mode (where M = Manual, forced to operate in 2D or 3D or A = Automatic, 3D/2D).
Definition at line 147 of file qgsgpsinformation.h.
| int QgsGpsInformation::fixType = 0 |
Contains the fix type, where 1 = no fix, 2 = 2d fix, 3 = 3d fix.
Definition at line 154 of file qgsgpsinformation.h.
| double QgsGpsInformation::hacc = std::numeric_limits< double >::quiet_NaN() |
Horizontal accuracy in meters.
Definition at line 111 of file qgsgpsinformation.h.
| double QgsGpsInformation::hdop = 0 |
Horizontal dilution of precision.
Definition at line 102 of file qgsgpsinformation.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 42 of file qgsgpsinformation.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 48 of file qgsgpsinformation.h.
| double QgsGpsInformation::pdop = 0 |
Dilution of precision.
Definition at line 97 of file qgsgpsinformation.h.
| int QgsGpsInformation::quality = -1 |
GPS quality indicator (0 = Invalid; 1 = Fix; 2 = Differential, 3 = Sensitive, etc.).
Definition at line 177 of file qgsgpsinformation.h.
| Qgis::GpsQualityIndicator QgsGpsInformation::qualityIndicator = Qgis::GpsQualityIndicator::Unknown |
Returns the signal quality indicator.
Definition at line 183 of file qgsgpsinformation.h.
| QList<QgsSatelliteInfo> QgsGpsInformation::satellitesInView |
Contains a list of information relating to the current satellites in view.
Definition at line 92 of file qgsgpsinformation.h.
| int QgsGpsInformation::satellitesUsed = 0 |
Count of satellites used in obtaining the fix.
Definition at line 188 of file qgsgpsinformation.h.
| bool QgsGpsInformation::satInfoComplete = false |
true if satellite information is complete.
Definition at line 203 of file qgsgpsinformation.h.
| QList<int> QgsGpsInformation::satPrn |
IDs of satellites used in the position fix.
Definition at line 198 of file qgsgpsinformation.h.
| double QgsGpsInformation::speed = 0 |
Ground speed, in km/h.
Definition at line 73 of file qgsgpsinformation.h.
| QChar QgsGpsInformation::status |
Status (A = active or V = void).
Definition at line 193 of file qgsgpsinformation.h.
| QDateTime QgsGpsInformation::utcDateTime |
The date and time at which this position was reported, in UTC time.
Definition at line 142 of file qgsgpsinformation.h.
| QTime QgsGpsInformation::utcTime |
The time at which this position was reported, in UTC time.
Definition at line 137 of file qgsgpsinformation.h.
| double QgsGpsInformation::vacc = std::numeric_limits< double >::quiet_NaN() |
Vertical accuracy in meters.
Definition at line 113 of file qgsgpsinformation.h.
| double QgsGpsInformation::vdop = 0 |
Vertical dilution of precision.
Definition at line 107 of file qgsgpsinformation.h.