Added new polar function, currently it does not distinguish between up wind and downwind and doesn't find it in the correct quadrant #story[1186]

This commit is contained in:
Fan-Wu Yang
2017-08-31 17:39:17 +12:00
parent 7086af6057
commit 9a5d20bdf2
5 changed files with 68 additions and 20 deletions
@@ -89,6 +89,7 @@ public class PolarParser {
Bearing angle = Bearing.fromDegrees(angleDegrees);
double boatSpeedKnots = Double.parseDouble(row[i + 1]);
polarTable.addEstimate(windSpeedKnots, angle, boatSpeedKnots);
polarTable.addPolars(windSpeedKnots, angle, boatSpeedKnots);
} catch (NumberFormatException e) {
throw new InvalidPolarFileException("Could not convert (Row,Col): (" + rowNumber + "," + i +") = " + row[i] + " to a double.", e);