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

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

retry braking when AT gearbox

parent 1e14d977
No related branches found
No related tags found
No related merge requests found
......@@ -455,6 +455,14 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
Source = this,
MaxDistance = DataBus.VehicleSpeed * r.DeltaT + operatingPoint.Acceleration / 2 * r.DeltaT * r.DeltaT
}).
Case<ResponseUnderload>(r => {
if (DataBus.GearboxType.AutomaticTransmission()) {
operatingPoint = SearchBrakingPower(absTime, operatingPoint.SimulationDistance, gradient,
operatingPoint.Acceleration, response);
DriverAcceleration = operatingPoint.Acceleration;
retVal = NextComponent.Request(absTime, operatingPoint.SimulationInterval, operatingPoint.Acceleration, gradient);
}
}).
Default(
r => {
throw new UnexpectedResponseException("DrivingAction Brake: request failed after braking power was found.", r);
......
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