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

PGN 130306 True Wind Angle should be +/-pi. #275

Open
goergevo opened this issue Aug 16, 2024 · 0 comments
Open

PGN 130306 True Wind Angle should be +/-pi. #275

goergevo opened this issue Aug 16, 2024 · 0 comments

Comments

@goergevo
Copy link

environment.wind.angleTrueWater should be generated from the incoming 0 - 2pi range by converting it to +/-pi. It should be handled exactly like environment.wind.angleAppearent.
On my Boat, I had the problem that TWA generated by my wind instruments received via n2k were 0..360 degree and not consistent with the value that the derived data plugin calculates. With the above described conversion, the received values and the ones calculated locally by the derived data plugin are identical.
It is now also consistent with the signalk to n2k conversion. In that code, TWA is converted from +/-pi into the 0-2pi range before sending it out.

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

1 participant