From db1230c2626f87501ee7c873af96d653706115e3 Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <quaritsch@ivt.tugraz.at>
Date: Thu, 2 Feb 2023 17:23:54 +0100
Subject: [PATCH] switchable clutch: no longer use the ClutchOpen signal

---
 VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs   | 1 +
 .../VectoCore/Models/SimulationComponent/SwitchableClutch.cs    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs
index 4e63db4f49..14895df513 100644
--- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs
+++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs
@@ -259,6 +259,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
 		protected override bool DoUpdateFrom(object other) {
 			if (other is Clutch c) {
 				PreviousState = c.PreviousState.Clone();
+				
 				return true;
 			}
 			return false;
diff --git a/VectoCore/VectoCore/Models/SimulationComponent/SwitchableClutch.cs b/VectoCore/VectoCore/Models/SimulationComponent/SwitchableClutch.cs
index 3cd054bcf8..2fd05d6e23 100644
--- a/VectoCore/VectoCore/Models/SimulationComponent/SwitchableClutch.cs
+++ b/VectoCore/VectoCore/Models/SimulationComponent/SwitchableClutch.cs
@@ -137,7 +137,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent
 
 		#region Overrides of Clutch
 
-		public override bool ClutchClosed(Second absTime) { return !ClutchOpen; } 
+		//public override bool ClutchClosed(Second absTime) { return !ClutchOpen; } 
 
 		#endregion
 
-- 
GitLab