From 72da9643bb964f412adf0ec019b827591f4e9bca Mon Sep 17 00:00:00 2001 From: Michael Krisper <michael.krisper@tugraz.at> Date: Mon, 21 Nov 2016 16:22:12 +0100 Subject: [PATCH] ATGearbox: Added Check for dryRun before engaging --- .../VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs index e3a9e76932..3b1c50d124 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs @@ -165,7 +165,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl Log.Debug("AT-Gearbox Power Request: torque: {0}, angularVelocity: {1}", outTorque, outAngularVelocity); - if ((DataBus.VehicleStopped && outAngularVelocity > 0) || (Disengaged && outTorque.IsGreater(0))) { + if (!dryRun && + ((DataBus.VehicleStopped && outAngularVelocity > 0) || (CurrentState.Disengaged && outTorque.IsGreater(0)))) { Gear = 1; //Strategy.InitGear(absTime, dt, outTorque, outAngularVelocity); TorqueConverterLocked = false; LastShift = absTime; -- GitLab