SignalK / nmea0183-signalk

NMEA0183 to Signal K parser
Other
30 stars 48 forks source link

BWC not recognized #209

Closed dharvey closed 2 years ago

dharvey commented 2 years ago

My Seatalk 1 to NMEA 0183 converter does not put the lat/long position of a waypoint into the BWC sentence. As a result, the sentence is ignored by SignalK. I therefore cannot get other useful information out of BWC, in particular bearing to waypoint and distance to waypoint. Is there a way to make SignalK accept this sentence even though it is missing the lat/long data?

joabakk commented 2 years ago

These lines are what is causing this behaviour: https://github.com/SignalK/nmea0183-signalk/blob/master/hooks/BWC.js#L40-L42

It could be discussed if that check is really necessary

dharvey commented 2 years ago

If I simply commented out those lines, would that fix my issue? Would it cause other problems?

joabakk commented 2 years ago

That will work just fine.

tkurki commented 2 years ago

Will it? What will be sent as nextpoint position?

tkurki commented 2 years ago

Fix published as @signalk/nmea0183-signalk@3.10.3