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

Skip to content
Snippets Groups Projects
Commit ce720a55 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

fix: take engine's RegPer correction factor into account

parent 580fab80
No related branches found
No related tags found
No related merge requests found
......@@ -156,6 +156,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
retVal.WHTCMotorway = engine.WHTCMotorway;
retVal.WHTCRural = engine.WHTCRural;
retVal.ColdHotCorrectionFactor = engine.ColdHotBalancingFactor;
retVal.CorrectionFactorRegPer = engine.CorrectionFactorRegPer;
retVal.Inertia = DeclarationData.Engine.EngineInertia(retVal.Displacement, gearbox.Type);
var limits = torqueLimits.ToDictionary(e => e.Gear);
var numGears = gearbox.Gears.Count;
......
......@@ -188,7 +188,7 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl
};
simulationRunData.EngineData.FuelConsumptionCorrectionFactor = DeclarationData.WHTCCorrection.Lookup(
mission.MissionType.GetNonEMSMissionType(), _engineData.WHTCRural, _engineData.WHTCUrban, _engineData.WHTCMotorway) *
_engineData.ColdHotCorrectionFactor;
_engineData.ColdHotCorrectionFactor * _engineData.CorrectionFactorRegPer;
simulationRunData.VehicleData.VehicleClass = _segment.VehicleClass;
yield return simulationRunData;
}
......
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