From 6ba00c461dd753286940c96efd2701ba2263c7ef Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Mon, 9 Nov 2015 12:40:40 +0100
Subject: [PATCH] handle overload during brake action when braking uphill and
 coasting already decelerates more than desired deceleration -> try accelerate

---
 .../Models/SimulationComponent/Impl/DefaultDriverStrategy.cs   | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs b/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs
index b982f09e13..6ef60ea798 100644
--- a/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs
+++ b/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs
@@ -510,6 +510,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
 							if (!DataBus.ClutchClosed(absTime)) {
 								Log.Warn("Clutch is open - trying RollAction");
 								response = Driver.DrivingActionRoll(absTime, ds, targetVelocity, gradient);
+							} else {
+								Log.Warn("Clutch is open - trying AccelerateAction");
+								response = Driver.DrivingActionAccelerate(absTime, ds, targetVelocity, gradient);
 							}
 						});
 					break;
-- 
GitLab