diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/CombustionEngine.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/CombustionEngine.cs index 7cb0e4d8fe8e745df893f2328c9965943e84229f..fa9653634375050c0a0e4f8d9d40b0d7a74d8401 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/CombustionEngine.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/CombustionEngine.cs @@ -552,7 +552,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl } - var velocitySlope = (_engineTargetSpeed - _engine.PreviousState.EngineSpeed) / + var velocitySlope = (_dataBus.TractionInterruption - (absTime - _idleStart)).IsEqual(0) ? 0.SI<PerSquareSecond>() : + (_engineTargetSpeed - _engine.PreviousState.EngineSpeed) / (_dataBus.TractionInterruption - (absTime - _idleStart)); var nextAngularSpeed = (velocitySlope * dt + _engine.PreviousState.EngineSpeed);