Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ignore static AIS data for self if configured in sk #1833

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sbender9
Copy link
Member

We currently overwrite things like name, design.length, etc.

Ignore them incase AIS is wrong.

@sbender9 sbender9 added the fix label Nov 21, 2024
Copy link
Member

@tkurki tkurki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is n2k-specific, does the same problem affect NMEA 0183 data?

ToSignalK.prototype.filterSelfAISStatic = function (values) {
return values.filter((kv) => {
return (
kv.path !== '' &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this supposed to work considering that n2k-signalk outputs deltas using the empty path trick? https://github.com/SignalK/n2k-signalk/blob/3b0401af0738c3fd8097ac661e060cdf4b9296cc/test/129794_ais_class_a_static_data.js#L59-L77

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's currently just ignoring that data for self.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The baseDeltas check does nothing if (did not check..) all the static data from AIS has path: ''. Or am I missing something?

@sbender9
Copy link
Member Author

Good question. I am not sure. Will check...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants