Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

fix in driver model: handle the case where the next target speed is exceeded...

fix in driver model: handle the case where the next target speed is exceeded because a slight target-speed decrease is not considered (current vehicle speed is still below next target speed) (UrbanDelivery Cycle)
parent 0e3709e1
No related branches found
No related tags found
No related merge requests found
......@@ -679,6 +679,11 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
if (!DataBus.ClutchClosed(absTime)) {
Log.Info("Brake -> Overload -> Clutch is open - Trying roll action");
response = Driver.DrivingActionRoll(absTime, ds, targetVelocity, gradient);
response.Switch().Case<ResponseSpeedLimitExceeded>(
() => {
response = Driver.DrivingActionBrake(absTime, ds, targetVelocity, gradient);
}
);
} else {
Log.Info("Brake -> Overload -> Clutch is closed - Trying brake action again");
DataBus.BrakePower = 0.SI<Watt>();
......
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