Basic implementation for mapping windspeed to draw a polar on a gate complete

Created functionality to grab the closest windspeed value to map to VMG values based off the current wind speed in the Polar Table

Created new RaceXML mark object which contains ALL marks for purposes of sequencing

Displaying correct (?) polars for one point only on a gate

Created functionality to receive leg data for each boat and then map that to the next gate. This may only work for the current race due to a slight fudge factor

Created functionality to receive wind speed

tags: #story[956] #pair[wmu16, mra106]
This commit is contained in:
William Muir
2017-05-24 20:31:07 +12:00
parent 1cac7cc189
commit 3cbbdb070f
9 changed files with 192 additions and 85 deletions
@@ -58,7 +58,7 @@ public class MarkGroup extends Group {
* @param layLineAngle The angle the laylines point
* @param baseAngle The reference angle
*/
private void addLayLine(Point2D startPoint, Double layLineAngle, Double baseAngle){
public void addLayLine(Point2D startPoint, Double layLineAngle, Double baseAngle){
Point2D ep1 = getPointRotation(startPoint, 50.0, baseAngle + -layLineAngle);
Point2D ep2 = getPointRotation(startPoint, 50.0, baseAngle + layLineAngle);
@@ -117,8 +117,8 @@ public class MarkGroup extends Group {
//Laylines
// if (mark.)
addLayLine(points1, 12.0, 90.0);
addLayLine(points2, 12.0, 90.0);
// addLayLine(points1, 12.0, 90.0);
// addLayLine(points2, 12.0, 90.0);
}
public void moveMarkTo (double x, double y, long raceId)