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: Clear destination on empty or invalid position received via NMEA #1844

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

panaaj
Copy link
Member

@panaaj panaaj commented Dec 8, 2024

Use the improved position validity test (#1840) to determine when to clear course.nextPoint.position value.
Ensures the same validity test is used for both setting and clearing destination position.

…xtPoint.position value when stream source is the cmdSource.
@panaaj panaaj added the fix label Dec 8, 2024
@panaaj panaaj requested a review from tkurki December 8, 2024 22:41
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.

Did I understand it correctly: after this change not only empty destination fields but also invalid destination coordinate values received from NMEA data will clear the destination?

If that is so then the change is ok, but I think we should change the PR title & description, as NMEA is not mentioned at all and imho people are more interested in how the server's behavior changes, not how things work internally.

@panaaj panaaj changed the title Fix: Use imporved position validity to clear destination. Fix: Clear destination on empty or invalid position received via NMEA Dec 10, 2024
@panaaj
Copy link
Member Author

panaaj commented Dec 10, 2024

Did I understand it correctly: after this change not only empty destination fields but also invalid destination coordinate values received from NMEA data will clear the destination?

This is correct.

@tkurki tkurki merged commit e92ccaf into master Dec 10, 2024
4 checks passed
@tkurki tkurki deleted the patch_course_cleardest branch December 10, 2024 05:16
naugehyde pushed a commit to naugehyde/signalk-server-nextgen that referenced this pull request Dec 14, 2024
…xtPoint.position value when stream source is the cmdSource. (SignalK#1844)
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