Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 696b7d1c authored by Stefanos Doumpoulakis's avatar Stefanos Doumpoulakis
Browse files

fix #160: AT gearbox not connected to idle controller

Issue: For conventional vehicles with automatic gearbox, the gearbox was
not connected to the idle controller (like in hybrids) and this caused
the simulation to fail.

Solution: The idle controller is connected to the AT gearbox, for
conventional vehicles, both in the regular and the test powertrain.
parent 65ffc04a
No related branches found
No related tags found
No related merge requests found
......@@ -572,6 +572,9 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
var engine = new StopStartCombustionEngine(container, data.EngineData);
var idleController = GetIdleController(data.PTO, engine, container);
cycle.IdleController = idleController as IdleControllerSwitcher;
var gearbox = GetGearbox(container);
cycle.AddComponent(new Driver(container, data.DriverData, new DefaultDriverStrategy(container)))
.AddComponent(new Vehicle(container, data.VehicleData, data.AirdragData))
.AddComponent(new Wheels(container, data.VehicleData.DynamicTyreRadius, data.VehicleData.WheelsInertia))
......@@ -579,11 +582,16 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
.AddComponent(new AxleGear(container, data.AxleGearData))
.AddComponent(data.AngledriveData != null ? new Angledrive(container, data.AngledriveData) : null)
.AddComponent(GetRetarder(RetarderType.TransmissionOutputRetarder, data.Retarder, container))
.AddComponent(GetGearbox(container))
.AddComponent(gearbox)
.AddComponent(GetRetarder(RetarderType.TransmissionInputRetarder, data.Retarder, container))
.AddComponent(data.GearboxData.Type.ManualTransmission() ? new Clutch(container, data.EngineData) : null)
.AddComponent(engine, idleController)
.AddAuxiliaries(container, data);
if (gearbox is ATGearbox atGbx) {
atGbx.IdleController = idleController;
}
return container;
}
......@@ -1842,16 +1850,23 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
}
var engine = new StopStartCombustionEngine(container, data.EngineData);
var gearbox = GetSimpleGearbox(container, data);
var idleController = GetIdleController(data.PTO, engine, container);
vehicle.AddComponent(new Wheels(container, data.VehicleData.DynamicTyreRadius, data.VehicleData.WheelsInertia))
.AddComponent(new Brakes(container))
.AddComponent(new AxleGear(container, data.AxleGearData))
.AddComponent(data.AngledriveData != null ? new Angledrive(container, data.AngledriveData) : null)
.AddComponent(GetRetarder(RetarderType.TransmissionOutputRetarder, data.Retarder, container))
.AddComponent(GetSimpleGearbox(container, data))
.AddComponent(gearbox)
.AddComponent(GetRetarder(RetarderType.TransmissionInputRetarder, data.Retarder, container))
.AddComponent(data.GearboxData.Type.ManualTransmission() ? new Clutch(container, data.EngineData) : null)
.AddComponent(engine, GetIdleController(data.PTO, engine, container))
.AddComponent(engine, idleController)
.AddAuxiliaries(container, data);
if (gearbox is ATGearbox atGbx) {
atGbx.IdleController = idleController;
}
}
public static void BuildSimpleHybridPowertrainGear(VectoRunData data, VehicleContainer container)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment