Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

Merge branch...

Merge branch 'feature/VECTO-1638-rundatafactories-and-declarationdataadapter-for-xev' of https://citnet.tech.ec.europa.eu/CITnet/stash/scm/vecto/hm_vecto-dev into feature/VECTO-1638-rundatafactories-and-declarationdataadapter-for-xev
parents 75e1810e eb15984a
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