From 3a0490d2cae4eb3e01d395f2c9c007dd3e8a3656 Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Fri, 27 May 2016 09:18:41 +0200
Subject: [PATCH] removed special case to 'brake away' all incoming torque when
 halting -> moved to clutch

---
 .../Models/SimulationComponent/Impl/Brakes.cs       | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs
index 99ee2a0529..9298160818 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) {
-- 
GitLab