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

VHW sentence should you not subtract the variation from headingTrue #63

Open
rezder opened this issue Dec 14, 2020 · 1 comment
Open

Comments

@rezder
Copy link

rezder commented Dec 14, 2020

In VHW.js

var headingMagnetic = headingTrue + magneticVariation
you are adding the magneticVariation to headingTrue to get the headingMagnetic should you not subtract.

From the documentation on https://signalk.org/specification/1.5.0/doc/vesselsBranch.html

Description: The magnetic variation (declination) at the current position that must be added to the magnetic heading to derive the true heading. Easterly variations are positive and Westerly variations are negative (in Radians).

@kdschmidt1
Copy link

i agree with the statement of rezder!
Line 22 should be changed to:
var headingMagnetic = headingTrue - magneticVariation

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

No branches or pull requests

3 participants