SignalK / signalk-autopilot

Apache License 2.0
16 stars 13 forks source link

Documentation Error for Target Heading #37

Open inspirity opened 4 weeks ago

inspirity commented 4 weeks ago

The documentation says that for the TargetHeading, you need a radians value.

But in the raymarinen2k.js file at line 97 within the putHeading function, the code expects a degree's value:

:97 var new_value = Math.trunc(degsToRad(value) * 10000)

It seems that the wind angle in radians should be within 4 decimal places. Is this correct?

sbender9 commented 4 weeks ago

I fixed the docs. You don't need to be concerned with decimal places.