mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 22:43:57 +00:00
removed now obsolete check for previous leg before computing maneuver loss
Change-Id: Ie23523e9b7dad96c4c2fb39c5e3da469d619e5f8
This commit is contained in:
1 parent
c64ca8b78a
commit
c52185a913
1 file changed
+6
-12
+6
-12
@@ -502,10 +502,8 @@ public class ManeuverDetectorImpl implements ManeuverDetector {
|
||||
refinedPenaltyDetails = computeManeuverDetails(refinedPenaltyMainCurveDetails,
|
||||
maneuverDetails.getTimePointBefore(), firstPenaltyCircleCompletedAt);
|
||||
}
|
||||
if (legBeforeManeuver != null) {
|
||||
maneuverLoss = getManeuverLoss(maneuverDetails.getTimePointBefore(),
|
||||
maneuverDetails.getTimePoint(), firstPenaltyCircleCompletedAt);
|
||||
}
|
||||
maneuverLoss = getManeuverLoss(maneuverDetails.getTimePointBefore(),
|
||||
maneuverDetails.getTimePoint(), firstPenaltyCircleCompletedAt);
|
||||
Position penaltyPosition = competitorTrack.getEstimatedPosition(refinedPenaltyDetails.getTimePoint(),
|
||||
/* extrapolate */ false);
|
||||
final Maneuver maneuver = new ManeuverWithStableSpeedAndCourseBoundariesImpl(maneuverType,
|
||||
@@ -525,10 +523,8 @@ public class ManeuverDetectorImpl implements ManeuverDetector {
|
||||
final Maneuver maneuver;
|
||||
if (numberOfTacks > 0 || numberOfJibes > 0) {
|
||||
maneuverType = numberOfTacks > 0 ? ManeuverType.TACK : ManeuverType.JIBE;
|
||||
if (legBeforeManeuver != null) {
|
||||
maneuverLoss = getManeuverLoss(maneuverDetails.getTimePointBefore(),
|
||||
maneuverDetails.getTimePoint(), maneuverDetails.getTimePointAfter());
|
||||
}
|
||||
maneuverLoss = getManeuverLoss(maneuverDetails.getTimePointBefore(),
|
||||
maneuverDetails.getTimePoint(), maneuverDetails.getTimePointAfter());
|
||||
maneuver = new ManeuverWithStableSpeedAndCourseBoundariesImpl(maneuverType, tackAfterManeuver,
|
||||
maneuverPosition, maneuverLoss, maneuverDetails.getTimePoint(),
|
||||
maneuverMainCurveDetails.extractEnteringAndExistingDetailsOnly(),
|
||||
@@ -553,10 +549,8 @@ public class ManeuverDetectorImpl implements ManeuverDetector {
|
||||
} else {
|
||||
// no wind information; marking as UNKNOWN
|
||||
maneuverType = ManeuverType.UNKNOWN;
|
||||
if (legBeforeManeuver != null) {
|
||||
maneuverLoss = getManeuverLoss(maneuverDetails.getTimePointBefore(),
|
||||
maneuverDetails.getTimePoint(), maneuverDetails.getTimePointAfter());
|
||||
}
|
||||
maneuverLoss = getManeuverLoss(maneuverDetails.getTimePointBefore(),
|
||||
maneuverDetails.getTimePoint(), maneuverDetails.getTimePointAfter());
|
||||
maneuver = new ManeuverWithStableSpeedAndCourseBoundariesImpl(maneuverType, tackAfterManeuver, maneuverPosition,
|
||||
maneuverLoss, maneuverDetails.getTimePoint(),
|
||||
maneuverMainCurveDetails.extractEnteringAndExistingDetailsOnly(),
|
||||
|
||||
Reference in new issue
Block a user