From 672b9c1c71fcadccea6f03004ece1af2094b50c0 Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Wed, 14 Dec 2016 17:49:52 +0100
Subject: [PATCH] gearbox: when disengaged: set gearbox input speed to engine
 speed.

results in a more concise output in vmod. P_clutch_out and P_gbx_in are equal
---
 VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs
index 8da35cea9e..47d2895505 100644
--- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs
+++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs
@@ -264,6 +264,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
 
 			var response = NextComponent.Request(absTime, dt, inTorque, null);
 
+			CurrentState.InAngularVelocity = response.EngineSpeed;
+
 			response.GearboxPowerRequest = outTorque * avgAngularVelocity;
 
 			return response;
-- 
GitLab