Class: QgsGpsInformation¶
Encapsulates information relating to a GPS position fix.
Enums
alias of |
Methods
Returns the best fix status and corresponding constellation. |
|
Returns the value of the corresponding GPS information component. |
|
Returns a map of GNSS constellation to fix status. |
|
Returns the fix status |
|
Returns whether the connection information is valid |
|
Returns the navigation status. |
|
Returns a descriptive string for the signal quality. |
|
Sets the navigation status. |
Attributes
The bearing measured in degrees clockwise from true north to the direction of travel. |
|
Altitude (in meters) above or below the mean sea level. |
|
Geoidal separation (in meters). |
|
Fix mode (where M = Manual, forced to operate in 2D or 3D or A = Automatic, 3D/2D) |
|
Contains the fix type, where 1 = no fix, 2 = 2d fix, 3 = 3d fix |
|
Horizontal dilution of precision. |
|
3D RMS |
|
Latitude in decimal degrees, using the WGS84 datum. |
|
Longitude in decimal degrees, using the WGS84 datum. |
|
Dilution of precision. |
|
GPS quality indicator (0 = Invalid; 1 = Fix; 2 = Differential, 3 = Sensitive, etc.) |
|
Returns the signal quality indicator |
|
|
|
IDs of satellites used in the position fix. |
|
Contains a list of information relating to the current satellites in view. |
|
Count of satellites used in obtaining the fix. |
|
Ground speed, in km/h. |
|
Status (A = active or V = void) |
|
The date and time at which this position was reported, in UTC time. |
|
The time at which this position was reported, in UTC time. |
|
Vertical dilution of precision. |
- class qgis.core.QgsGpsInformation[source]¶
Bases:
object
- FixStatus¶
alias of
GpsFixStatus
- bestFixStatus(self)[source]¶
Returns the best fix status and corresponding constellation.
- Returns:
best current fix status
constellation: the constellation with best fix status
Added in version 3.30.
- componentValue(self, component: Qgis.GpsInformationComponent) Any [source]¶
Returns the value of the corresponding GPS information
component
.Added in version 3.30.
- Parameters:
component (Qgis.GpsInformationComponent)
- Return type:
Any
- constellationFixStatus(self) Dict[Qgis.GnssConstellation, Qgis.GpsFixStatus] ¶
Returns a map of GNSS constellation to fix status.
Added in version 3.30.
- Return type:
- direction: float¶
The bearing measured in degrees clockwise from true north to the direction of travel.
- elevation: float¶
Altitude (in meters) above or below the mean sea level.
- elevation_diff: float¶
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 elevation value to obtain the geoidal elevation.
Added in version 3.18.
- fixMode: QChar¶
Fix mode (where M = Manual, forced to operate in 2D or 3D or A = Automatic, 3D/2D)
- fixStatus(self) Qgis.GpsFixStatus [source]¶
Returns the fix status
Deprecated since version 3.40: Use
constellationFixStatus()
orbestFixStatus()
instead.- Return type:
- fixType: int¶
Contains the fix type, where 1 = no fix, 2 = 2d fix, 3 = 3d fix
Deprecated since version 3.40: Use
constellationFixStatus()
orbestFixStatus()
instead.
- hacc¶
- hdop: float¶
Horizontal dilution of precision.
- hvacc: float¶
3D RMS
Added in version 3.18.
- isValid(self) bool [source]¶
Returns whether the connection information is valid
Added in version 3.10.
- Return type:
bool
- latitude: float¶
Latitude in decimal degrees, using the WGS84 datum. A positive value indicates the Northern Hemisphere, and a negative value indicates the Southern Hemisphere.
- longitude: float¶
Longitude in decimal degrees, using the WGS84 datum. A positive value indicates the Eastern Hemisphere, and a negative value indicates the Western Hemisphere.
Returns the navigation status.
See also
Added in version 3.38.
- Return type:
- pdop: float¶
Dilution of precision.
- quality: int¶
GPS quality indicator (0 = Invalid; 1 = Fix; 2 = Differential, 3 = Sensitive, etc.)
Deprecated since version 3.40: Use
qualityIndicator()
instead.
- qualityDescription(self) str [source]¶
Returns a descriptive string for the signal quality.
Added in version 3.16.
- Return type:
str
- qualityIndicator: Qgis.GpsQualityIndicator¶
Returns the signal quality indicator
Added in version 3.22.6.
- satInfoComplete: bool¶
True
if satellite information is complete.
- satPrn: List[int]¶
IDs of satellites used in the position fix.
- satellitesInView: List[QgsSatelliteInfo]¶
Contains a list of information relating to the current satellites in view.
- satellitesUsed: int¶
Count of satellites used in obtaining the fix.
Sets the navigation
status
.See also
Added in version 3.38.
- Parameters:
status (Qgis.GpsNavigationStatus)
- speed: float¶
Ground speed, in km/h.
- status: QChar¶
Status (A = active or V = void)
- utcDateTime: QDateTime¶
The date and time at which this position was reported, in UTC time.
- utcTime: QTime¶
The time at which this position was reported, in UTC time.
Added in version 3.30.
- vacc¶
- vdop: float¶
Vertical dilution of precision.