Initial work on calculating when a gate is upwind or downwind

Need to know if a gate is upwind or downwind to use the appropriate polar table

Currently calculate the angle between the next mark and the vector of the current mark to the wind, if this angle is less than 90 degrees than the next mark should be down wind

Pretty poor implementation currently, just prototype

Doesn't appear to be working as intended currently. Just a prototype for how we could implement further

tags: #story[956]
This commit is contained in:
William Muir
2017-05-24 00:08:55 +12:00
parent ca8ea03870
commit 89464e033e
3 changed files with 41 additions and 7 deletions
@@ -114,6 +114,9 @@ public class MarkGroup extends Group {
}
super.getChildren().add(line);
//Laylines
// if (mark.)
addLayLine(points1, 12.0, 90.0);
addLayLine(points2, 12.0, 90.0);
}