From 9c0699e6dc055782c1174fbef0af86eeccaf6847 Mon Sep 17 00:00:00 2001 From: Michael Krisper <michael.krisper@tugraz.at> Date: Fri, 15 Apr 2022 12:58:15 +0200 Subject: [PATCH] DefaultDriverStrategy.HandleRequestEngaged: Added case for ResponseOverload situation: try Coast (fixed the problem at 22km in P2 G5 NoEE UrbanDelivery) --- .../Models/SimulationComponent/Impl/DefaultDriverStrategy.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs index 56779d22b9..2702d21465 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs @@ -987,6 +987,10 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl third = Driver.DrivingActionRoll(absTime, ds, velocityWithOverspeed, gradient); debug.Add(new { a = "[HRE-4] second: GearShift -> Roll", third }); switch (third) { + case ResponseOverload _: + third = Driver.DrivingActionCoast(absTime, ds, velocityWithOverspeed, gradient); + debug.Add(new { a = "[HRE-5] third:Overload -> try again Coast", third }); + break; case ResponseUnderload _: // underload may happen if driver limits acceleration when rolling downhill third = Driver.DrivingActionBrake(absTime, ds, velocityWithOverspeed, gradient); -- GitLab