SignalK / signalk-to-nmea0183

Signal K Node server plugin to convert Signal K to NMEA 0183
Apache License 2.0
13 stars 28 forks source link

fix: RMC for >99 degrees, error handling #20

Closed tkurki closed 6 years ago

tkurki commented 6 years ago

When generating NMEA formatted longitude >99 degrees, the 1 in the hundreds place was dropped. This commit fixes that by adding separate functions for encoding latitudes and longitudes. It also adds logic to catch & log errors from trying to convert illegal values: a converter can just throw errors.

Originally #19

Fixes #18