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

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
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment