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

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

PowertrainBuilder: Retarder in BuildFullPowertrainConventional

parent b2dd26d8
No related branches found
No related tags found
No related merge requests found
......@@ -350,13 +350,14 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
/// └┬Wheels
/// └┬Brakes
/// └┬AxleGear
/// └┬(Angledrive)
/// └┬(Output Retarder)
/// └┬Gearbox, ATGearbox, or APTNGearbox
/// └┬(Input Retarder)
/// └┬(Clutch when Manual Transmission)
/// └StopStartCombustionEngine
/// └(Aux)
/// └┬(AxlegearInputRetarder)
/// └┬(Angledrive)
/// └┬(TransmissionOutputRetarder)
/// └┬Gearbox, ATGearbox, or APTNGearbox
/// └┬(TransmissionInputRetarder)
/// └┬(Clutch)
/// └StopStartCombustionEngine
/// └(Aux)
/// </code>
/// </summary>
private IVehicleContainer BuildFullPowertrainConventional(VectoRunData data)
......@@ -375,12 +376,14 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
.AddComponent(new Wheels(container, data.VehicleData.DynamicTyreRadius, data.VehicleData.WheelsInertia))
.AddComponent(new Brakes(container))
.AddComponent(new AxleGear(container, data.AxleGearData))
.AddComponent(data.Retarder.Type == RetarderType.AxlegearInputRetarder ? new Retarder(container, data.Retarder.LossMap, data.Retarder.Ratio) : null)
.AddComponent(data.AngledriveData != null ? new Angledrive(container, data.AngledriveData) : null)
.AddComponent(GetGearbox(container), data.Retarder, container)
.AddComponent(data.Retarder.Type == RetarderType.TransmissionOutputRetarder ? new Retarder(container, data.Retarder.LossMap, data.Retarder.Ratio) : null)
.AddComponent(GetGearbox(container), container)
.AddComponent(data.Retarder.Type == RetarderType.TransmissionInputRetarder ? new Retarder(container, data.Retarder.LossMap, data.Retarder.Ratio) : null)
.AddComponent(data.GearboxData.Type.ManualTransmission() ? new Clutch(container, data.EngineData) : null)
.AddComponent(engine, idleController)
.AddAuxiliaries(container, data);
return container;
}
......
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