From d20e15a8dc5151939cd31e2afbb108657059bb46 Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Fri, 29 Jul 2016 12:58:35 +0200
Subject: [PATCH] bugfix in gearbox: disengage when vehicle is stopped

---
 VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs
index 9f46216ef1..4721a2283f 100644
--- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs
+++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs
@@ -479,7 +479,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
 				}
 			}
 			if (DataBus.VehicleStopped) {
-				Disengaged = false;
+				Disengaged = true;
 				_engageTime = -double.MaxValue.SI<Second>();
 			}
 			AdvanceState();
-- 
GitLab