From 51d69ab750c4d6ff7b2a641840db13c0b0ab0178 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Thu, 23 Jun 2022 16:58:22 +0200 Subject: [PATCH] bugfix IHPC: saving boosting torque limits --- VECTO/GUI/VehicleForm.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VECTO/GUI/VehicleForm.vb b/VECTO/GUI/VehicleForm.vb index 1783d6aaaa..fc51649d2a 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 -- GitLab