To tack, or not to tack, that is the question...
By Dermot Tynan • March 1, 2013
Looking at the upper-level navigation software introduces some particularly interesting questions. The low-level software will keep the boat on a TWA, or true wind angle. Technically, it's an apparent wind angle, but that's ok.
The upper level has to decide what is the best TWA. To do this, it has the current position of the boat and the position of the next waypoint. It also knows the current TWA and the compass heading. Without bogging down in the maths, it can compute the distance and bearing to the next waypoint using something called a Haversin algorithm. Given the current TWA and the heading, it can determine the wind direction. We can compute the VMG or "velocity made good" for each new heading possibility, based on the predicted Polar (more on that anon). So, we can see that a particular heading is the best course to get us as fast as possible to the next mark. All of this is standard stuff, and is used on sailboat race courses every day.