Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 9c0699e6 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

DefaultDriverStrategy.HandleRequestEngaged: Added case for ResponseOverload...

DefaultDriverStrategy.HandleRequestEngaged: Added case for ResponseOverload situation: try Coast (fixed the problem at 22km in P2 G5 NoEE UrbanDelivery)
parent 6dcf35a7
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment