Derived Data True Wind Angle

In the derived data plugin, why does TWA require navigation.headingTrue? TWA should be relative to the bow, like AWA, and can be calculated from apparent wind and STW.
No description
8 Replies
PaddyB
PaddyB3mo ago
it outputs true wind direction as well
Scott Bender
Scott Bender3mo ago
You need heading to calculate TWA Think about it…
Jason_SV.Apres|Hunter336|WI
he is right, TWA should just need AWA and STW, it is TWD which is also part of that calc that needs it - True wind Direction is relative to true heading where as TWA is relative to the boat actually TWA needs AWA, STW and AWS (sorry I missed AWS)
Scott Bender
Scott Bender3mo ago
Yeah, it’s for TWD We should break that into a separate calculation
Jason_SV.Apres|Hunter336|WI
@barnaclebill do you have navigation.headingMagnetic? do you have a compass? if so in Derived Data turn on Magnetic variation and you will get navigation.headingTrue
barnaclebill
barnaclebillOP3mo ago
The problem is in the code. It calculates TWD and TWA, but it gives up if there is no compass direction. I modified it and will test and submit a PR if the fix works.
PaddyB
PaddyB3mo ago
or just write your own custom calc https://github.com/SignalK/signalk-derived-data/tree/master "To add new calculations, just create a new file under the ./calcs directory."
Scott Bender
Scott Bender3mo ago
No. This is a good change.

Did you find this page helpful?