diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs index 99ee2a05293a640aadacf90c8ab8f52a284878fa..92981608182d131cf6b2dea3ee2e0eb0eb1437ba 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs @@ -71,19 +71,6 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl } else { brakeTorque = BrakePower / avgAngularSpeed; } - } else { - // check if we want to stand still in the current interval. - // problem: angularVelocity is 0 at the end of the interval: if we don't check for this, the clutch will be slipping and burns up the whole torque. - // 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.ClutchClosed(absTime) && DataBus.DriverBehavior == DrivingBehavior.Braking && !PreviousState.OutAngularVelocity.IsEqual(0) && - angularVelocity.IsEqual(0)) { - brakeTorque = -torque; - if (!dryRun) { - BrakePower = brakeTorque.Abs() * avgAngularSpeed; - } - } } if (!dryRun && BrakePower < 0) {