Class: QgsGpsInformation

Encapsulates information relating to a GPS position fix.

List of all members, including inherited members

Methods

bestFixStatus

Returns the best fix status and corresponding constellation.

componentValue

Returns the value of the corresponding GPS information component.

constellationFixStatus

Returns a map of GNSS constellation to fix status.

fixStatus

Returns the fix status

isValid

Returns whether the connection information is valid

navigationStatus

Returns the navigation status.

qualityDescription

Returns a descriptive string for the signal quality.

setNavigationStatus

Sets the navigation status.

Attributes

direction

elevation

elevation_diff

fixMode

fixType

hacc

hdop

hvacc

latitude

longitude

pdop

quality

qualityIndicator

satInfoComplete

satPrn

satellitesInView

satellitesUsed

speed

status

utcDateTime

utcTime

vacc

vdop

class qgis.core.QgsGpsInformation[source]

Bases: object

FixStatus

alias of GpsFixStatus

bestFixStatus(self)[source]

Returns the best fix status and corresponding constellation.

Return type:

(Qgis.GpsFixStatus, Qgis.GnssConstellation)

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:

dict[Qgis.GnssConstellation, Qgis.GpsFixStatus]

direction: float
elevation: float
elevation_diff: float
fixMode: QChar
fixStatus(self) Qgis.GpsFixStatus[source]

Returns the fix status

Deprecated since version 3.40: Use constellationFixStatus() or bestFixStatus() instead.

Return type:

Qgis.GpsFixStatus

fixType: int
hacc
hdop: float
hvacc: float
isValid(self) bool[source]

Returns whether the connection information is valid

Added in version 3.10.

Return type:

bool

latitude: float
longitude: float
navigationStatus(self) Qgis.GpsNavigationStatus[source]

Returns the navigation status.

Added in version 3.38.

Return type:

Qgis.GpsNavigationStatus

pdop: float
quality: int
qualityDescription(self) str[source]

Returns a descriptive string for the signal quality.

Added in version 3.16.

Return type:

str

qualityIndicator: Qgis.GpsQualityIndicator
satInfoComplete: bool
satPrn: List[int]
satellitesInView: List[QgsSatelliteInfo]
satellitesUsed: int
setNavigationStatus(self, status: Qgis.GpsNavigationStatus)[source]

Sets the navigation status.

Added in version 3.38.

Parameters:

status (Qgis.GpsNavigationStatus)

speed: float
status: QChar
utcDateTime: QDateTime
utcTime: QTime
vacc
vdop: float