From 7957bb9d42759fc13482103691888c527f1328ac Mon Sep 17 00:00:00 2001 From: "VKMTHD\\haraldmartini" <harald.martini@student.tugraz.at> Date: Tue, 31 Jan 2023 13:45:51 +0100 Subject: [PATCH] use simpleelctric motor control instead of dummy electric motor control (cherry picked from commit 7e4750d42484b9459f4f396b9eebd0e44883fa53) --- .../Simulation/Impl/PCCEcoRollEngineStopPreprocessor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VectoCore/VectoCore/Models/Simulation/Impl/PCCEcoRollEngineStopPreprocessor.cs b/VectoCore/VectoCore/Models/Simulation/Impl/PCCEcoRollEngineStopPreprocessor.cs index e75d98c02b..f01232bc3d 100644 --- a/VectoCore/VectoCore/Models/Simulation/Impl/PCCEcoRollEngineStopPreprocessor.cs +++ b/VectoCore/VectoCore/Models/Simulation/Impl/PCCEcoRollEngineStopPreprocessor.cs @@ -125,8 +125,8 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl var gradient = 0.SI<Radian>(); foreach (var motor in container.ElectricMotors.Values) { - if ((motor as ElectricMotor).Control is DummyElectricMotorControl emCtl) { - emCtl.EmTorque = null; + if ((motor as ElectricMotor).Control is SimpleElectricMotorControl emCtl) { + emCtl.EmOff = true; } } -- GitLab