From 320d819f32d45f21241a26e3e0c8288813cd1e44 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Thu, 11 Nov 2021 15:27:25 +0100 Subject: [PATCH] fill in additional required fields in response --- .../SimulationComponent/Impl/StopStartCombustionEngine.cs | 2 ++ .../Models/SimulationComponent/Impl/TorqueConverter.cs | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/StopStartCombustionEngine.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/StopStartCombustionEngine.cs index 1d5fc0d489..d0288d50b2 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/StopStartCombustionEngine.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/StopStartCombustionEngine.cs @@ -103,6 +103,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl TorqueOutDemand = outTorque, PowerRequest = outTorque * 0.RPMtoRad(), // outAngularVelocity, DynamicFullLoadPower = 0.SI<Watt>(), + DynamicFullLoadTorque = 0.SI<NewtonMeter>(), DragPower = 0.SI<Watt>(), EngineSpeed = 0.RPMtoRad(), // outAngularVelocity, // 0.RPMtoRad(), AuxiliariesPowerDemand = 0.SI<Watt>(), @@ -120,6 +121,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl PowerRequest = 0.SI<Watt>(), DynamicFullLoadPower = 0.SI<Watt>(), TotalTorqueDemand = 0.SI<NewtonMeter>(), + DynamicFullLoadTorque = 0.SI<NewtonMeter>(), DragPower = 0.SI<Watt>(), DragTorque = 0.SI<NewtonMeter>(), EngineSpeed = 0.RPMtoRad(), diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/TorqueConverter.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/TorqueConverter.cs index c1dd613b35..5388e0f4d8 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/TorqueConverter.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/TorqueConverter.cs @@ -143,7 +143,12 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl retVal1.ElectricMotor.TorqueRequest = engineResponse.ElectricMotor.TorqueRequest; retVal1.ElectricMotor.InertiaTorque = engineResponse.ElectricMotor.InertiaTorque; retVal1.ElectricMotor.TotalTorqueDemand = engineResponse.ElectricMotor.TotalTorqueDemand; - + retVal1.ElectricMotor.MaxDriveTorque = engineResponse.ElectricMotor.MaxDriveTorque; + retVal1.ElectricMotor.MaxDriveTorqueEM = engineResponse.ElectricMotor.MaxDriveTorqueEM; + retVal1.ElectricMotor.MaxRecuperationTorque = engineResponse.ElectricMotor.MaxRecuperationTorque; + retVal1.ElectricMotor.MaxRecuperationTorqueEM = engineResponse.ElectricMotor.MaxRecuperationTorqueEM; + retVal1.ElectricMotor.AngularVelocity = engineResponse.ElectricMotor.AngularVelocity; + retVal1.ElectricMotor.ElectricMotorPowerMech = engineResponse.ElectricMotor.ElectricMotorPowerMech; return retVal1; } } -- GitLab