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

Documentation Error for Target Heading #37

Open
inspirity opened this issue Aug 16, 2024 · 1 comment
Open

Documentation Error for Target Heading #37

inspirity opened this issue Aug 16, 2024 · 1 comment

Comments

@inspirity
Copy link

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
Copy link
Member

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

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

No branches or pull requests

2 participants