Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 091af0ab authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

add handling for case that engine speed is too high during coasting to fix unexpected response

parent 907fa598
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment