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 82c8ac6d authored by Michael KRISPER's avatar Michael KRISPER
Browse files

EngineeringModeVectoRunDataFactory: Added check for Serial Hybrids that...

EngineeringModeVectoRunDataFactory: Added check for Serial Hybrids that ElectricMachines must be defined.
parent 38979c80
No related branches found
No related tags found
No related merge requests found
...@@ -117,6 +117,9 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl ...@@ -117,6 +117,9 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl
GearboxData gearboxData = null; GearboxData gearboxData = null;
ShiftStrategyParameters gearshiftParams = null; ShiftStrategyParameters gearshiftParams = null;
var angledriveData = dao.CreateAngledriveData(vehicle.Components.AngledriveInputData); var angledriveData = dao.CreateAngledriveData(vehicle.Components.AngledriveInputData);
if (electricMachinesData == null || electricMachinesData.Count == 0)
throw new ArgumentNullException("Electric machines are missing in vehicle.");
if (electricMachinesData.Any(x => x.Item1 == PowertrainPosition.BatteryElectricE2)) { if (electricMachinesData.Any(x => x.Item1 == PowertrainPosition.BatteryElectricE2)) {
// gearbox required! // gearbox required!
gearshiftParams = dao.CreateGearshiftData( gearshiftParams = dao.CreateGearshiftData(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment