mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-06 12:23:55 +00:00
Showing wind from racelog if none is available from tracked race
This commit is contained in:
1 parent
6103f0030c
commit
89bcc7d343
1 file changed
+8
-10
+8
-10
@@ -144,11 +144,10 @@ public class RaceContext {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Wind wind = checkForWindFixesFromRaceLog();
|
||||
if (wind != null) {
|
||||
return new SimpleWindDTO(wind.getFrom().getDegrees(), wind.getKnots());
|
||||
}
|
||||
}
|
||||
Wind wind = checkForWindFixesFromRaceLog();
|
||||
if (wind != null) {
|
||||
return new SimpleWindDTO(wind.getFrom().getDegrees(), wind.getKnots());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -194,11 +193,10 @@ public class RaceContext {
|
||||
return new WindStatisticsDTO(averageDirection, lowerBoundWindInKnots, upperBoundWindInKnots);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Wind wind = checkForWindFixesFromRaceLog();
|
||||
if (wind != null) {
|
||||
return new WindStatisticsDTO(wind.getFrom().getDegrees(), wind.getKnots(), wind.getKnots());
|
||||
}
|
||||
}
|
||||
Wind wind = checkForWindFixesFromRaceLog();
|
||||
if (wind != null) {
|
||||
return new WindStatisticsDTO(wind.getFrom().getDegrees(), wind.getKnots(), wind.getKnots());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user