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

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

driver strategy: handle speedLimit response in a separate switch because it...

driver strategy: handle speedLimit response in a separate switch because it may occor also during the second requests.
parent 94b6bdb1
No related branches found
No related tags found
No related merge requests found
......@@ -544,7 +544,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
}
//Phase = BrakingPhase.Brake;
}).
Case<ResponseGearShift>(r => { response = Driver.DrivingActionRoll(absTime, ds, targetVelocity, gradient); }).
Case<ResponseGearShift>(r => { response = Driver.DrivingActionRoll(absTime, ds, targetVelocity, gradient); });
// handle the SpeedLimitExceeded Response separately in case it occurs in one of the requests in the second try
response.Switch().
Case<ResponseSpeedLimitExceeded>(() => {
response = Driver.DrivingActionBrake(absTime, ds, DataBus.VehicleSpeed,
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