Yesterday, when I was sailing, a squall passed by… and naturally, the wind “slightly” changed direction during the squall’s passage.
I also do long navigations (80km) where the wind at one end of the route is not the same as at the beginning.
As a result, the wind calculation displayed by the application is incorrect.
It’s flattering at times, as I must sometimes sail at less than 10° to the wind
, but it’s not very realistic.
Could you implement “segments” and calculate the wind and sailing angles for each of these segments? This could be a calculation that the user launches manually or that the software performs if the distance traveled exceeds X km or Y time? If the segments are consistent, they can be merged. If there are inconsistencies within a segment (if automatic calculation is used), the system can split it further in search of inconsistencies.
I’m fully aware:
1/ that a calculation on the entire track can quickly become very resource-intensive (3 hours at 1 point/second makes ~11k points to analyze)
2/ that these ideas… must require a lot of lines of code during which you’re not sailing ![]()
Cheers!