VHW sentence should you not subtract the variation from headingTrue
rezder opened this issue · 1 comments
rezder commented
In VHW.js
signalk-to-nmea0183/sentences/VHW.js
Line 22 in 1cabd13
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 commented
i agree with the statement of rezder!
Line 22 should be changed to:
var headingMagnetic = headingTrue - magneticVariation