sergei / sci2000

Javelin instruments SW and HW
Apache License 2.0
1 stars 0 forks source link

TWA is misbehaving on starboard tack #5

Open sergei opened 1 year ago

sergei commented 1 year ago

It was noted that TWA is kind of bimodal when boat sails on starboard tack, e.g. https://youtu.be/DWoVmSsBorY?si=e6ahgVSJjIcPhygu&t=330

It oscillates between expected value and about 90 degrees

sergei commented 1 year ago

Collected the log file with the MHU output awa-moving.log

sergei commented 1 year ago

Here we see four plots:

As one can see on starboard tack the green wire is most behaving, but we oscillate between choosing red and blue

image

sergei commented 1 year ago

Current algorithm divides the entire range into three 120 degrees zones and picks one wire to perform arcsin() operation on it. There are two problems with it

sergei commented 1 year ago

New algorithm is proposed.

sergei commented 1 year ago

Now the plot of AWA with the new algorithm (black) image

sergei commented 1 year ago

Test of C++ code on the log file is promising: image Next step is test on the water on the next Wednesday night.