mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-04 19:33:52 +00:00
show wind estimation not only for EXPEDITION source but for selected wind source's time points
This commit is contained in:
1 parent
a490a98594
commit
74ee90d53f
1 file changed
+2
-2
+2
-2
@@ -420,7 +420,7 @@ public class SailingServiceImpl extends RemoteServiceServlet implements SailingS
|
||||
windTrackInfoDAO.windFixes = new ArrayList<WindDAO>();
|
||||
WindTrack windTrack = trackedRace.getWindTrack(windSource);
|
||||
windTrackInfoDAO.dampeningIntervalInMilliseconds = windTrack.getMillisecondsOverWhichToAverageWind();
|
||||
if (includeTrackBasedWindEstimation && windSource == WindSource.EXPEDITION) {
|
||||
if (includeTrackBasedWindEstimation && windSource == trackedRace.getWindSource()) {
|
||||
estimatedTrack = new WindTrackImpl(windTrack.getMillisecondsOverWhichToAverageWind());
|
||||
}
|
||||
Iterator<Wind> windIter = windTrack.getFixesIterator(from, /* inclusive */true);
|
||||
@@ -431,7 +431,7 @@ public class SailingServiceImpl extends RemoteServiceServlet implements SailingS
|
||||
}
|
||||
WindDAO windDAO = createWindDAO(wind, windTrack);
|
||||
windTrackInfoDAO.windFixes.add(windDAO);
|
||||
if (includeTrackBasedWindEstimation && windSource == WindSource.EXPEDITION) {
|
||||
if (includeTrackBasedWindEstimation && windSource == trackedRace.getWindSource()) {
|
||||
try {
|
||||
Wind estimatedWindDirection = trackedRace.getEstimatedWindDirection(wind.getPosition(), wind.getTimePoint());
|
||||
estimatedTrack.add(estimatedWindDirection);
|
||||
|
||||
Reference in new issue
Block a user