nmea0183-signalk
nmea0183-signalk copied to clipboard
Check for `<` in sentences causes skipping of valid VDM sentences
The check in parse.js:
// The (MTK) CRC check doesn't report "invalid" if the input string contains the "<" character, even though it actually isn't valid.
if (sentence.includes('<')) {
valid = false
}
I see some VDM messages that contain this but parse fine if I remove the check, For example: !AIVDM,1,1,,A,352JPU@000JRU4<FCLvaEWOp0000,0*1B
Ok, it should not apply to ais sentences. The problem is that that character does not count in the checksum, so it was a way to ignore some corrupted sentences in the test files.
@fabdrol?
I ran the offending test file again without the condition, and it works fine. I guess it's a fix no longer needed