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

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

handle consecutive overload responses with AT gearboxes due to gearshift...

handle consecutive overload responses with AT gearboxes due to gearshift between search braking power and actual request
parent b8eeb88c
No related branches found
No related tags found
No related merge requests found
......@@ -231,8 +231,8 @@ Public Class VectoJob
Return New StartStopInputData With {
.Enabled = _startStop,
.MaxSpeed = StartStopMaxSpeed.KMPHtoMeterPerSecond(),
.MinTime = StartStopTime.SI (Of Second)(),
.Delay = StartStopDelay.SI (Of Second)()
.MinTime = StartStopTime.SI(Of Second)(),
.Delay = StartStopDelay.SI(Of Second)()
}
End Get
End Property
......
......@@ -519,6 +519,20 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
operatingPoint.Acceleration, gradient);
}
}).
Case<ResponseOverload>(r => {
if (DataBus.GearboxType.AutomaticTransmission()) {
// overload may happen because of gearshift between search and actual request, search again
DataBus.BrakePower = 0.SI<Watt>();
operatingPoint = SearchBrakingPower(absTime, operatingPoint.SimulationDistance, gradient,
operatingPoint.Acceleration, response);
DriverAcceleration = operatingPoint.Acceleration;
retVal = NextComponent.Request(absTime, operatingPoint.SimulationInterval,
operatingPoint.Acceleration, gradient);
} else {
throw new UnexpectedResponseException(
"DrivingAction Brake: request failed after braking power was found.", r);
}
}).
Default(
r => {
throw new UnexpectedResponseException(
......
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