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 af20d00c authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

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

Merge pull request #631 in VECTO/vecto-sim from ~EMQUARIMA/vecto-sim:bugfix/VECTO-730-simulation-aborts-with-responseoverload to master

* commit '347edf4a':
  add handling for a special case in driver strategy: vehicle declerates to new target speed, shift strategy decides to downshift, toruqe at gearbox output is negative (due to slope and other resistances), but torque at gearbox input gets slightly positive but the gearbox is disengaged - no driving force. trying again with roll action after overload fro brake action.
  adding missing annotation
parents 3c4e05f7 347edf4a
Branches
Tags
No related merge requests found
......@@ -658,6 +658,11 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
DataBus.BrakePower = 0.SI<Watt>();
response = Driver.DrivingActionBrake(absTime, ds, DriverStrategy.BrakeTrigger.NextTargetSpeed,
gradient, targetDistance: targetDistance);
response.Switch().Case<ResponseOverload>(
() => {
Log.Info("Brake -> Geearshift -> Overload -> trying roll action (no gear engaged)");
response = Driver.DrivingActionRoll(absTime, ds, DriverStrategy.BrakeTrigger.NextTargetSpeed, gradient);
});
});
return response;
}
......
......@@ -54,6 +54,8 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration
[TestFixture]
public class ShiftPolygonTest
{
[OneTimeSetUp]
public void RunBeforeAnyTests()
{
Directory.SetCurrentDirectory(TestContext.CurrentContext.TestDirectory);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment