Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

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

try to search operating point once more, in case the first one was due to an engine speed too high

parent 6a105ba0
Branches
Tags
No related merge requests found
...@@ -267,6 +267,14 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -267,6 +267,14 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
retVal.Switch(). retVal.Switch().
Case<ResponseSuccess>(() => operatingPoint = nextOperatingPoint). Case<ResponseSuccess>(() => operatingPoint = nextOperatingPoint).
Case<ResponseGearShift>(() => operatingPoint = nextOperatingPoint). Case<ResponseGearShift>(() => operatingPoint = nextOperatingPoint).
Case<ResponseOverload>(
r => {
nextOperatingPoint = SearchOperatingPoint(absTime, ds, gradient, operatingPoint.Acceleration,
r);
DriverAcceleration = nextOperatingPoint.Acceleration;
retVal = NextComponent.Request(absTime, nextOperatingPoint.SimulationInterval,
nextOperatingPoint.Acceleration, gradient);
}).
Default( Default(
r => { r => {
throw new UnexpectedResponseException("DrivingAction Accelerate after Overload", r); throw new UnexpectedResponseException("DrivingAction Accelerate after Overload", r);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment