From dd5bb120eed125e04ecfe99157e19c2501ffd7c6 Mon Sep 17 00:00:00 2001 From: Michael Krisper <michael.krisper@tugraz.at> Date: Tue, 8 Nov 2016 17:10:18 +0100 Subject: [PATCH] ATShiftStrategy: TC Check over RatedSpeed is reverted to IsGreater again (from IsGreaterOrEqual) --- .../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 9bd7dd0893..5773929f18 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATShiftStrategy.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATShiftStrategy.cs @@ -140,7 +140,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl Log.Debug("engine speed would fall below idle speed - shift down"); return true; } - if (inAngularVelocity.IsGreaterOrEqual(DataBus.EngineRatedSpeed) && Data.Gears.ContainsKey(gear + 1)) { + if (inAngularVelocity.IsGreater(DataBus.EngineRatedSpeed) && Data.Gears.ContainsKey(gear + 1)) { NextGear.SetState(absTime, false, gear + 1, Data.Gears[gear + 1].HasLockedGear); Log.Debug("engine speed would be above rated speed - shift up"); return true; -- GitLab