diff --git a/VECTO/GUI/VehicleForm.vb b/VECTO/GUI/VehicleForm.vb index 1783d6aaaae0051ee8ce52b29bf3979fdc6934ec..fc51649d2aa1b1c5aece60321d5e6f710153e924 100644 --- a/VECTO/GUI/VehicleForm.vb +++ b/VECTO/GUI/VehicleForm.vb @@ -495,7 +495,7 @@ Public Class VehicleForm tbGenSetRatio.Text = gen.RatioADC.ToGUIFormat() End If - If (vehicle.VehicleType = VectoSimulationJobType.ParallelHybridVehicle) Then + If (vehicle.VehicleType = VectoSimulationJobType.ParallelHybridVehicle OrElse vehicle.VehicleType = VectoSimulationJobType.IHPC) Then 'tbMaxDrivetrainPwr.Text = vehicle.MaxDrivetrainPower.ConvertToKiloWatt().Value.ToXMLFormat(2) 'ToDo ElectricMotorTorqueLimits changed 'tbEmTorqueLimits.Text = if (Not vehicle.ElectricMotorTorqueLimits Is Nothing, GetRelativePath(vehicle.ElectricMotorTorqueLimits.Source, basePath), "") @@ -933,7 +933,7 @@ Public Class VehicleForm veh.EmTorqueLimitsFile.Init(GetPath(file), tbEmTorqueLimits.Text) End If - If (VehicleType = VectoSimulationJobType.ParallelHybridVehicle AndAlso Not String.IsNullOrEmpty(tbPropulsionTorqueLimit.Text)) Then + If ((VehicleType = VectoSimulationJobType.ParallelHybridVehicle OrElse VehicleType = VectoSimulationJobType.IHPC) AndAlso Not String.IsNullOrEmpty(tbPropulsionTorqueLimit.Text)) Then veh.PropulsionTorqueFile.Init(GetPath(file), tbPropulsionTorqueLimit.Text) End If