diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs index aa2fb87f4f781b696dabec69ae6ce051a84bec71..99ee2a05293a640aadacf90c8ab8f52a284878fa 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs @@ -77,7 +77,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl // but this could lead to extrapolation of loss maps (in axlegear and gear). // solution: we check here if the angularVelocity is 0 the first time and brake away all the torque if it is. // afterwards the vehicle is standing and other mechanisms take over (Driver.DriveTimeInterval) - if (DataBus.DriverBehavior == DrivingBehavior.Braking && !PreviousState.OutAngularVelocity.IsEqual(0) && + if (DataBus.ClutchClosed(absTime) && DataBus.DriverBehavior == DrivingBehavior.Braking && !PreviousState.OutAngularVelocity.IsEqual(0) && angularVelocity.IsEqual(0)) { brakeTorque = -torque; if (!dryRun) {