Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 9f99cb34 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

added MaxOverSpeed to the calculation of maxSpeed PreProcessing

parent 72fa7313
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,9 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
public void RunPreprocessing()
{
var slopes = new Dictionary<MeterPerSecond, Radian>();
var maxSpeed = VectoMath.Max(Container.VehicleInfo.MaxVehicleSpeed, Container.RunData.Cycle.Entries.Max(x => x.VehicleTargetSpeed));
var maxOverspeed = VectoMath.Max(Container.RunData.DriverData.OverSpeed.OverSpeed, Container.RunData.DriverData.PCC.OverspeedUseCase3);
var maxSpeed = VectoMath.Min(Container.VehicleInfo.MaxVehicleSpeed, Container.RunData.Cycle.Entries.Max(x => x.VehicleTargetSpeed)+maxOverspeed);
var preProcessor = new PCCEcoRollEngineStopPreprocessor(Container, slopes, PCCDriverData.MinSpeed, maxSpeed);
preProcessor.RunPreprocessing();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment