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

Skip to content
Snippets Groups Projects
Verified Commit caaa88b3 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

bugfix check for angledrive

parent 3490a6a1
No related branches found
No related tags found
No related merge requests found
......@@ -356,7 +356,7 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl.DeclarationMode.PrimaryBusRunDa
protected override void AngleDriveAllowed(IVehicleDeclarationInputData inputData)
{
if (inputData.Components.AngledriveInputData != null)
if (inputData.Components.AngledriveInputData != null && inputData.Components.AngledriveInputData.Type != AngledriveType.None)
{
throw new VectoException("Angledrive not allowed in serial hybrid vehicles");
}
......@@ -694,7 +694,7 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl.DeclarationMode.PrimaryBusRunDa
protected override void AngleDriveAllowed(IVehicleDeclarationInputData inputData)
{
if (inputData.Components.AngledriveInputData != null)
if (inputData.Components.AngledriveInputData != null && inputData.Components.AngledriveInputData.Type != AngledriveType.None)
{
throw new VectoException("Angledrive not allowed in pure electric vehicles");
}
......
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