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

Skip to content
Snippets Groups Projects
Commit dd47abea authored by Michael KRISPER's avatar Michael KRISPER
Browse files

added extra case on GearShift after SearchBrakePower in Brake Mode

parent dc02126b
No related branches found
No related tags found
No related merge requests found
......@@ -735,6 +735,10 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
}
);
}
}).
Case<ResponseGearShift>(r => {
Log.Info("Got GearShift response, performing roll action...");
response = Driver.DrivingActionRoll(absTime, ds, DriverStrategy.BrakeTrigger.NextTargetSpeed, gradient);
});
break;
}
......
......@@ -429,6 +429,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
retVal.Switch().
Case<ResponseSuccess>().
Case<ResponseGearShift>().
Case<ResponseFailTimeInterval>(r =>
retVal = new ResponseDrivingCycleDistanceExceeded() {
Source = this,
......
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