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

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

create axle for iepc if its present in input data

parent f8ab9029
No related branches found
No related tags found
No related merge requests found
......@@ -303,8 +303,11 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter.SimulationComponen
if ((inputData.VehicleType == VectoSimulationJobType.BatteryElectricVehicle || inputData.VehicleType == VectoSimulationJobType.SerialHybridVehicle) &&
gearbox.Type.AutomaticTransmission())
{
// PEV with APT-S or APT-P transmission are simulated as APT-N
retVal.Type = GearboxType.APTN;
if (retVal.Type.IsOneOf(GearboxType.ATPowerSplit, GearboxType.ATSerial)) {
retVal.Type = GearboxType.APTN;
}
}
retVal.ATEcoRollReleaseLockupClutch =
......
......@@ -432,7 +432,7 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl.DeclarationMode.HeavyLorryRunDa
result.AngledriveData = DataAdapter.CreateAngledriveData(vehicle.Components.AngledriveInputData);
if (AxleGearRequired()) {
if (AxleGearRequired() || vehicle.Components.AxleGearInputData != null) {
result.AxleGearData = DataAdapter.CreateAxleGearData(vehicle.Components.AxleGearInputData);
}
......@@ -588,7 +588,7 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl.DeclarationMode.HeavyLorryRunDa
$"Number of gears drag curve does not match gear count! DragCurve {numGearsDrag}; Gear count: {gearCount}");
}
return axleGearRequired;
return axleGearRequired || vehicle.Components.AxleGearInputData != null;
}
......
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