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

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
GearboxData gearboxData = null;
ShiftStrategyParameters gearshiftParams = null;
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)) {
// gearbox required!
gearshiftParams = dao.CreateGearshiftData(
......
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