From 091af0ab8321cb35a92c275f543eca84c005288f Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Wed, 1 Aug 2018 17:26:24 +0200 Subject: [PATCH] add handling for case that engine speed is too high during coasting to fix unexpected response --- .../Models/SimulationComponent/Impl/DefaultDriverStrategy.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs index ef9a330dd3..582e53a767 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs @@ -453,6 +453,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl second = Driver.DrivingActionBrake(absTime, ds, velocity, gradient); debug.Add(new { action = "first:(Underload & !Overspeed) -> Brake", second }); } + }). + Case<ResponseEngineSpeedTooHigh>(r => { + second = Driver.DrivingActionBrake(absTime, ds, targetVelocity, gradient, r); }); var third = second; -- GitLab