Opened 7 years ago

Last modified 7 years ago

#2933 defect new

nmea protocol fails when HDOP and/or altitude are not present

Reported by: fpierfed Owned by: fpierfed
Priority: normal Milestone:
Component: core Keywords:
Cc: exarkun Branch:
Author: Launchpad Bug:

Description

Some GPS devices (e.g. EverMore receivers) do not send out neither HDOP nor altitude information when they cannot get a position fix. Consequently the NMEA GPGGA message has the form

$GPGGA,Time,Latitude,LonDir,Latiture,LatDir,Fix,NumSatellites,,,M,,M,,,M,,M,,*CRC

In these cases, nmea.py (in decode_fix) tries to cast empty strings to floats, raising an exception.

The fix is trivial.

Attachments (1)

nmea.patch (700 bytes) - added by fpierfed 7 years ago.
Patch for nmea.py

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by fpierfed

Patch for nmea.py

comment:1 Changed 7 years ago by exarkun

  • Cc exarkun added
  • Owner changed from glyph to fpierfed

Can you describe how this case is different from all of the cases in twisted/test/test_nmea.py?

Even better, could you include a patch to that file which covers this case as well?

Note: See TracTickets for help on using tickets.