module documentation
Test cases for using NMEA sentences.
Class |
|
Tests that NMEA representations of altitudes are correctly converted. |
Class |
|
Tests for verifying predictable failure for bogus NMEA sentences. |
Class |
|
Tests for broken NMEA sentence callbacks. |
Class |
|
Tests if the NMEA protocol correctly calls its sentence callback. |
Class |
|
NMEA sentence checksum verification tests. |
Class |
|
Tests turning NMEA coordinate notations into something more pleasant. |
Class |
|
No class docstring; 5/5 methods documented |
Class |
|
Mixin for tests for the fixers on nmea.NMEAAdapter that adapt from NMEA-specific notations to generic Python objects. |
Class |
|
Tests for the generic unit fixing method, nmea.NMEAAdapter._fixUnits . |
Class |
|
Tests for the interpretation of GSV sequences. |
Class |
|
Tests that data being reported from a bad or incomplete fix isn't used. Although the specification dictates that GPSes shouldn't produce NMEA sentences with real-looking values for altitude or position in them unless they have at least some semblance of a GPS fix, this is widely ignored. |
Class |
|
A mixin for tests that need an NMEA receiver (and a protocol attached to it). |
Class |
|
Tests for the NMEA receiver. |
Class |
|
Tests for nmea.NMEASentence objects. |
Class |
|
An NMEA receiver for testing. |
Class |
|
Tests if raw NMEA sentences get parsed correctly. |
Class |
|
Position errors in NMEA are passed as dilutions of precision (DOP). This is a measure relative to some specified value of the GPS device as its "reference" precision. Unfortunately, there are very few ways of figuring this out from just the device (sans manual). |
Class |
|
Tests that NMEA representations of speeds are correctly converted. |
Class |
|
Checks splitting of NMEA sentences. |
Class |
|
Tests conversion from NMEA timestamps to datetime.time objects. |
Class |
|
Tests that data reported from a valid fix is used. |
Class |
|
Tests if the absolute values of magnetic variations on the heading and their sign get combined correctly, and if that value gets combined with a heading correctly. |
Constant | GPGGA |
Undocumented |
Constant | GPGLL |
Undocumented |
Constant | GPGLL |
Undocumented |
Constant | GPGSA |
Undocumented |
Constant | GPGSV |
Undocumented |
Constant | GPGSV |
Undocumented |
Constant | GPGSV |
Undocumented |
Constant | GPGSV |
Undocumented |
Constant | GPGSV |
Undocumented |
Constant | GPGSV |
Undocumented |
Constant | GPHDT |
Undocumented |
Constant | GPRMC |
Undocumented |
Function | _coordinate |
Return the sign of a coordinate. |
Function | _coordinate |
Return the type of a coordinate. |
Function | _nmea |
Builds an NMEA float representation for a given angle in degrees and decimal minutes. |
Undocumented
Value |
|
Return the sign of a coordinate.
This is 1 if the coordinate is in the northern or eastern hemispheres, -1 otherwise.
Parameters | |
hemisphere:str | NMEA shorthand for the hemisphere. One of "NESW". |
Returns | |
int | The sign of the coordinate value. |
Return the type of a coordinate.
This is Angles.LATITUDE
if the coordinate is in the northern or southern hemispheres, Angles.LONGITUDE
otherwise.
Parameters | |
hemisphere:str | NMEA shorthand for the hemisphere. One of "NESW". |
Returns | |
The type of the coordinate (Angles.LATITUDE or Angles.LONGITUDE ) |