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

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

merge again

parent 21cb494d
No related branches found
No related tags found
No related merge requests found
......@@ -869,7 +869,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
//-->Engine E4
new DummyGearboxInfo(container);
new ATClutchInfo(container);
powertrain.AddComponent(GetElectricMachine(PowertrainPosition.BatteryElectricE4,
data.ElectricMachinesData, container, es, ctl));
break;
......@@ -878,11 +878,11 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
//-->AxleGear-->(AxlegearInputRetarder)-->Engine E3
new DummyGearboxInfo(container);
new ATClutchInfo(container);
powertrain
.AddComponent(new AxleGear(container, data.AxleGearData))
.AddComponent(GetRetarder(RetarderType.AxlegearInputRetarder, data.Retarder, container))
.AddComponent(GetElectricMachine(PowertrainPosition.BatteryElectricE3,
.AddComponent(GetElectricMachine(PowertrainPosition.BatteryElectricE3,
data.ElectricMachinesData, container, es, ctl));
break;
......@@ -894,7 +894,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
} else {
gearbox = new Gearbox(container, ctl.ShiftStrategy);
}
ctl.Gearbox = gearbox;
new DummyEngineInfo(container);
......@@ -904,7 +904,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
.AddComponent(GetRetarder(RetarderType.TransmissionOutputRetarder, data.Retarder, container))
.AddComponent(gearbox)
.AddComponent(GetRetarder(RetarderType.TransmissionInputRetarder, data.Retarder, container))
.AddComponent(GetElectricMachine(PowertrainPosition.BatteryElectricE2,
.AddComponent(GetElectricMachine(PowertrainPosition.BatteryElectricE2,
data.ElectricMachinesData, container, es, ctl));
break;
......@@ -987,7 +987,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
case CycleType.EngineOnly: break;
default: throw new VectoException("Wrong CycleType for SimplePowertrain");
}
vehicle.AddComponent(new Wheels(container, data.VehicleData.DynamicTyreRadius, data.VehicleData.WheelsInertia))
.AddComponent(ctl)
.AddComponent(new Brakes(container))
......@@ -1065,7 +1065,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
.AddComponent(data.AxleGearData is null ? null : new AxleGear(container, data.AxleGearData))
.AddComponent(data.AngledriveData != null ? new Angledrive(container, data.AngledriveData) : null)
.AddComponent(data.GearboxData is null ? null : GetSimpleGearbox(container, data))
.AddComponent(GetElectricMachine(data.ElectricMachinesData.First(x => x.Item1 != PowertrainPosition.GEN).Item1,
.AddComponent(GetElectricMachine(data.ElectricMachinesData.First(x => x.Item1 != PowertrainPosition.GEN).Item1,
data.ElectricMachinesData, container, es, new DummyElectricMotorControl()));
}
......@@ -1279,8 +1279,9 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
return new APTNShiftStrategy(container);
case VectoSimulationJobType.ConventionalVehicle when container.IsTestPowertrain:
return null;
default:
throw new ArgumentException("APT-N Gearbox is only applicable on hybrids and battery electric vehicles.");
default:
throw new ArgumentException("APT-N Gearbox is only applicable on hybrids and battery electric vehicles.");
}
default:
throw new ArgumentOutOfRangeException("GearboxType", runData.GearboxData.Type, "VECTO can not automatically derive shift strategy for GearboxType.");
......
......@@ -1782,7 +1782,11 @@ namespace TUGraz.VectoCore.Tests.Integration.Hybrid
.AddComponent(new AxleGear(container, runData.AxleGearData))
.AddComponent(runData.AngledriveData != null ? new Angledrive(container, runData.AngledriveData) : null)
.AddComponent(runData.Retarder.Type == RetarderType.TransmissionOutputRetarder ? new Retarder(container, runData.Retarder.LossMap, runData.Retarder.Ratio) : null)
<<<<<<< HEAD
.AddComponent(new Gearbox(container, new AMTShiftStrategyOptimized(container)))
=======
.AddComponent(gearbox)
>>>>>>> cf118898c (Corrected bugs after merging)
.AddComponent(runData.Retarder.Type == RetarderType.TransmissionInputRetarder ? new Retarder(container, runData.Retarder.LossMap, runData.Retarder.Ratio) : null)
.AddComponent(new SwitchableClutch(container, runData.EngineData))
.AddComponent(engine, engine.IdleController)
......
......@@ -639,8 +639,7 @@ namespace TUGraz.VectoCore.Tests.Integration.Hybrid
.AddComponent((IGearbox)gearbox)
.AddComponent(runData.Retarder.Type == RetarderType.TransmissionInputRetarder ? new Retarder(container, runData.Retarder.LossMap, runData.Retarder.Ratio) : null)
.AddComponent(GetElectricMachine(PowertrainPosition.BatteryElectricE2, runData.ElectricMachinesData,
container,
es, ctl));
container, es, ctl));
ctl.Gearbox = gearbox;
break;
......
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