Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit eb15984a authored by Harald Martini's avatar Harald Martini
Browse files

added ATShiftStrategy to ShiftPolygonCalculator.Create()

parent 054079a4
No related branches found
No related tags found
No related merge requests found
......@@ -73,11 +73,12 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var runData = dataBus.RunData;
EarlyShiftUp = true;
SkipGears = true;
_shiftPolygonCalculator = ShiftPolygonCalculator.Create(Name, null);
if (runData.EngineData == null) {
return;
}
_shiftPolygonCalculator = ShiftPolygonCalculator.Create(Name, null);
var transmissionRatio = runData.AxleGearData.AxleGear.Ratio *
(runData.AngledriveData?.Angledrive.Ratio ?? 1.0) /
runData.VehicleData.DynamicTyreRadius;
......
......@@ -40,8 +40,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl.Shiftstrategies
}
return new PEVAMTShiftStrategyPolygonCreator(shiftStrategyParameters);
}
if (name == ATShiftStrategy.Name) {
return new ATShiftStrategyPolygonCalculator();
}
throw new ArgumentException($"Could not create ShiftPolygonCalculator for {name}");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment