twisted.positioning.nmea.NMEASentence(_sentence._BaseSentence)
class documentationtwisted.positioning.nmea
View Source
(View In Hierarchy)
An object representing an NMEA sentence.
The attributes of this objects are raw NMEA protocol data, which are all ASCII bytestrings.
This object contains all the raw NMEA protocol data in a single
sentence. Not all of these necessarily have to be present in the sentence.
Missing attributes are None
when accessed.
Instance Variable | type | The sentence type ("GPGGA" ,
"GPGSV" ...). |
Instance Variable | numberOfGSVSentences | The total number of GSV sentences in a sequence. |
Instance Variable | GSVSentenceIndex | The index of this GSV sentence in the GSV sequence. |
Instance Variable | timestamp | A timestamp. ("123456" -> 12:34:56Z) |
Instance Variable | datestamp | A datestamp. ("230394" -> 23 Mar 1994) |
Instance Variable | latitudeFloat | Latitude value. (for example: "1234.567" -> 12
degrees, 34.567 minutes). |
Instance Variable | latitudeHemisphere | Latitudinal hemisphere ("N" or
"S" ). |
Instance Variable | longitudeFloat | Longitude value. See latitudeFloat for an example. |
Instance Variable | longitudeHemisphere | Longitudinal hemisphere ("E" or
"W" ). |
Instance Variable | altitude | The altitude above mean sea level. |
Instance Variable | altitudeUnits | Units in which altitude is expressed. (Always "M"
for meters.) |
Instance Variable | heightOfGeoidAboveWGS84 | The local height of the geoid above the WGS84 ellipsoid model. |
Instance Variable | heightOfGeoidAboveWGS84Units | The units in which the height above the geoid is expressed. (Always
"M" for meters.) |
Instance Variable | trueHeading | The true heading. |
Instance Variable | magneticVariation | The magnetic variation. |
Instance Variable | magneticVariationDirection | The direction of the magnetic variation. One of "E"
or "W" . |
Instance Variable | speedInKnots | The ground speed, expressed in knots. |
Instance Variable | fixQuality | The quality of the fix. (type: One of GPGGAFixQualities .) |
Instance Variable | dataMode | Signals if the data is usable or not. (type: One of GPGLLGPRMCFixQualities .) |
Instance Variable | numberOfSatellitesSeen | The number of satellites seen by the receiver. |
Instance Variable | numberOfSatellitesUsed | The number of satellites used in computing the fix. |
Instance Variable | horizontalDilutionOfPrecision | The dilution of the precision of the position on a plane tangential to the geoid. (HDOP) |
Instance Variable | verticalDilutionOfPrecision | As horizontalDilutionOfPrecision , but for a position on a
plane perpendicular to the geoid. (VDOP) |
Instance Variable | positionDilutionOfPrecision | Euclidean norm of HDOP and VDOP. |
Instance Variable | satellitePRN | The unique identifcation number of a particular satellite. Optionally
suffixed with _N if multiple satellites are referenced in a
sentence, where N in range(4) . |
Instance Variable | elevation | The elevation of a satellite in decimal degrees. Optionally suffixed with
_N , as with satellitePRN . |
Instance Variable | azimuth | The azimuth of a satellite in decimal degrees. Optionally suffixed with
_N , as with satellitePRN . |
Instance Variable | signalToNoiseRatio | The SNR of a satellite signal, in decibels. Optionally suffixed with
_N , as with satellitePRN . |
Instance Variable | usedSatellitePRN_N | Where int(N) in range(12) . The PRN of a satellite used in
computing the fix. |
Method | _isFirstGSVSentence | Tests if this current GSV sentence is the first one in a sequence. |
Method | _isLastGSVSentence | Tests if this current GSV sentence is the final one in a sequence. |
Inherited from _BaseSentence:
Instance Variable | presentAttributes 0 | An iterable containing the names of the attributes that are present in this
sentence. (type: iterable of str ) |
Class Variable | ALLOWED_ATTRIBUTES | A set of attributes that are allowed in this sentence. (type: set of str ) |
Method | __init__ | Initializes a sentence with parsed sentence data. |
Method | presentAttributes | An iterable containing the names of the attributes that are present in this sentence. |
Method | __getattr__ | Gets an attribute of this sentence. |
Method | __repr__ | Returns a textual representation of this sentence. |
"M"
for meters.)
horizontalDilutionOfPrecision
, but for a position on a
plane perpendicular to the geoid. (VDOP)
_N
if multiple satellites are referenced in a
sentence, where N in range(4)
.
_N
, as with satellitePRN
.
_N
, as with satellitePRN
.
_N
, as with satellitePRN
.
Tests if this current GSV sentence is the first one in a sequence.
Returns | True if this is the first GSV sentence. (type: bool ) |
Tests if this current GSV sentence is the final one in a sequence.
Returns | True if this is the last GSV sentence. (type: bool ) |