mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 22:43:57 +00:00
use existing inference of passing instructions that it used elsewhere
Change-Id: I061d67f90fb6ec770b19b765dc787340a3f882da
This commit is contained in:
1 parent
dae3bfdd68
commit
57eee82a63
1 file changed
+2
-3
+2
-3
@@ -764,7 +764,7 @@ public class CandidateFinderImpl implements CandidateFinder {
|
||||
result = 1.0;
|
||||
} else {
|
||||
// if the start waypoint's passing instructions are unknown, assume it's a line
|
||||
final boolean startIsLine = start.getPassingInstructions() == PassingInstruction.Line || start.getPassingInstructions() == PassingInstruction.None;
|
||||
final boolean startIsLine = getPassingInstructions(start) == PassingInstruction.Line;
|
||||
final List<AbsoluteGeometricDistanceAndSignedProjectedDistanceToStartLine> distancesToStartLineOfOtherCompetitors = new ArrayList<>();
|
||||
for (final Competitor otherCompetitor : race.getRace().getCompetitors()) {
|
||||
if (otherCompetitor != c) {
|
||||
@@ -915,7 +915,7 @@ public class CandidateFinderImpl implements CandidateFinder {
|
||||
}
|
||||
pos.add(po);
|
||||
}
|
||||
if (pos.size() != 2){
|
||||
if (pos.size() != 2) {
|
||||
return true;
|
||||
}
|
||||
Bearing diff1 = pos.get(0).getBearingGreatCircle(p)
|
||||
@@ -925,7 +925,6 @@ public class CandidateFinderImpl implements CandidateFinder {
|
||||
if (Math.abs(diff1.getDegrees()) > 90 || Math.abs(diff2.getDegrees()) > 90) {
|
||||
result = false;
|
||||
}
|
||||
|
||||
} else {
|
||||
Mark m = null;
|
||||
if (instruction == PassingInstruction.Single_Unknown || instruction == PassingInstruction.Port || instruction == PassingInstruction.Starboard
|
||||
|
||||
Reference in new issue
Block a user