added fix for mark passing maneuver position

This commit is contained in:
Axel Uhl committed 2014-05-16 11:30:13 +02:00
1 parent 01d8422025
commit f1fc788b22
1 file changed
+2 -1
@@ -2206,9 +2206,10 @@ public abstract class TrackedRaceImpl extends TrackedRaceWithWindEssentials impl
waypointPassed = legAfterManeuver.getLeg().getFrom();
MarkPassing markPassing = getMarkPassing(competitor, waypointPassed);
markPassingTimePoint = markPassing != null ? markPassing.getTimePoint() : maneuverTimePoint;
Position markPassingPosition = markPassing != null ? competitorTrack.getEstimatedPosition(markPassingTimePoint, /* extrapolate */false) : maneuverPosition;
sideToWhichWaypointWasPassed = courseChangedTo;
// produce an additional mark passing maneuver; continue to analyze to catch jibe sets and kiwi drops
result.add(new MarkPassingManeuverImpl(ManeuverType.MARK_PASSING, tackAfterManeuver, maneuverPosition,
result.add(new MarkPassingManeuverImpl(ManeuverType.MARK_PASSING, tackAfterManeuver, markPassingPosition,
markPassingTimePoint, speedWithBearingOnApproximationAtBeginning,
speedWithBearingOnApproximationAtEnd, totalCourseChangeInDegrees, maneuverLoss, waypointPassed,
sideToWhichWaypointWasPassed));