diff --git a/VectoCore/VectoCore/Models/Simulation/Impl/PCCEcoRollEngineStopPreprocessor.cs b/VectoCore/VectoCore/Models/Simulation/Impl/PCCEcoRollEngineStopPreprocessor.cs index e75d98c02b9967083c206c14c2bc982790baf8ed..f01232bc3d048fcde3f4ebca71b358e617b4a241 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; } }