From 1d4e7cb21f98dfcd82a139b924a0224928f6a6bc Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <quaritsch@ivt.tugraz.at>
Date: Wed, 21 Dec 2022 08:24:41 +0100
Subject: [PATCH] correcting codition that engine speed is not too high after a
 downshift

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

diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATShiftStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATShiftStrategy.cs
index 3b1f1b9ad8..059d1667a6 100644
--- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATShiftStrategy.cs
+++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATShiftStrategy.cs
@@ -401,7 +401,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
 						var tmpResponseDs = (ResponseDryRun)_gearbox.Request(absTime, dt, outTorque, outAngularVelocity, true);
 						SetGear(gbxState);
 						// done
-						if (tmpResponseDs.DeltaEngineSpeed.IsGreater(0) && tmpResponseDs.DeltaFullLoad - Formulas.InertiaPower(
+						if (tmpResponseDs.DeltaEngineSpeed.IsSmaller(0) && tmpResponseDs.DeltaFullLoad - Formulas.InertiaPower(
 							tmpResponseDs.Engine.EngineSpeed, DataBus.EngineInfo.EngineSpeed, EngineInertia, dt) < tmpResponseCurr.DeltaFullLoad) {
 							Downshift(absTime, gear);
 							return true;
-- 
GitLab