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

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

Merge pull request #435 in VECTO/vecto-sim from...

Merge pull request #435 in VECTO/vecto-sim from ~EMQUARIMA/vecto-sim:bugfix/VECTO-518-simulation-aborts to develop

* commit '30607455':
  handle gearshift response after braking power was found
parents 8b0a70ee 30607455
No related branches found
No related tags found
No related merge requests found
......@@ -573,6 +573,11 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
Case<ResponseUnderload>(r => {
response = Driver.DrivingActionBrake(absTime, ds, DriverStrategy.BrakeTrigger.NextTargetSpeed,
gradient, r);
response.Switch().Case<ResponseGearShift>(() => {
DataBus.BrakePower = 0.SI<Watt>();
response = Driver.DrivingActionBrake(absTime, ds, DriverStrategy.BrakeTrigger.NextTargetSpeed,
gradient, r);
});
});
return response;
}
......
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