From ca7acd9d85f059ee8de76aed49024b03fe2b77b9 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Wed, 20 Feb 2019 10:27:11 +0100 Subject: [PATCH] allow tolerance of 0.1*tractioninterruption for engaging geear --- VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs index f05dac2162..185c02af60 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs @@ -71,7 +71,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl public override bool ClutchClosed(Second absTime) { - return _engageTime.IsSmallerOrEqual(absTime); + return _engageTime.IsSmallerOrEqual(absTime, ModelData.TractionInterruption / 20); } public Gearbox(IVehicleContainer container, IShiftStrategy strategy, VectoRunData runData) : base(container, runData) -- GitLab