mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-03 01:29:33 +00:00
Path now able to use the wind patterns.
This commit is contained in:
1 parent
68c5a3409b
commit
9875307cd1
6 files changed
+67
-12
No files matched your search
+6
@@ -220,6 +220,12 @@ public class SimulatorServiceImpl extends RemoteServiceServlet implements Simula
|
||||
WindFieldGenerator wf = WindFieldGeneratorFactory.INSTANCE.createWindFieldGenerator(pattern.getWindPattern()
|
||||
.name(), bd, controlParameters);
|
||||
|
||||
List<Position> lattice = bd.extractLattice(params.getxRes(),params.getyRes());//wf.extractLattice(params.getxRes(), params.getyRes());
|
||||
wf.setPositionGrid(bd.extractGrid(params.getxRes(), params.getyRes()));
|
||||
TimePoint start = new MillisecondsTimePoint(0);
|
||||
TimePoint timeStep = new MillisecondsTimePoint(30*1000);
|
||||
wf.generate(start,null,timeStep);
|
||||
|
||||
// TODO Get all the paths that need to be displayed
|
||||
List<WindDTO> path = getOptimumPath(course, wf);
|
||||
PathDTO[] pathDTO = new PathDTO[1];
|
||||
|
||||
+4
-4
@@ -52,7 +52,7 @@ public class WindPatternDisplayManagerImpl implements WindPatternDisplayManager
|
||||
1);
|
||||
display.addSetting(maxBlastSize);
|
||||
WindPatternSetting<Double> blastWindSpeed = new WindPatternSettingSliderBar("blastWindSpeed",
|
||||
"Average Blast Wind Speed (%)", 0, 100, 0);
|
||||
"Average Blast Wind Speed (%)", 0, 100, 100);
|
||||
display.addSetting(blastWindSpeed);
|
||||
WindPatternSetting<Double> blastWindSpeedVar = new WindPatternSettingSliderBar("blastWindSpeedVar",
|
||||
"Blast Wind Speed Variance (%)", 0, 100, 0);
|
||||
@@ -70,13 +70,13 @@ public class WindPatternDisplayManagerImpl implements WindPatternDisplayManager
|
||||
"Oscillation Amplitude (Degrees)", 0, 20, 0);
|
||||
display.addSetting(amplitude);
|
||||
WindPatternSetting<Double> leftWindSpeed = new WindPatternSettingSliderBar("leftWindSpeed",
|
||||
"Wind Speed Left Side (%)", 0, 200, 0);
|
||||
"Wind Speed Left Side (%)", 0, 200, 100);
|
||||
display.addSetting(leftWindSpeed);
|
||||
WindPatternSetting<Double> middleWindSpeed = new WindPatternSettingSliderBar("middleWindSpeed",
|
||||
"Wind Speed Middle (%)", 0, 200, 0);
|
||||
"Wind Speed Middle (%)", 0, 200, 100);
|
||||
display.addSetting(middleWindSpeed);
|
||||
WindPatternSetting<Double> rightWindSpeed = new WindPatternSettingSliderBar("rightWindSpeed",
|
||||
"Wind Speed Right Side (%)", 0, 200, 0);
|
||||
"Wind Speed Right Side (%)", 0, 200, 100);
|
||||
display.addSetting(rightWindSpeed);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user