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

Skip to content
Snippets Groups Projects
Commit 347edf4a authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

add handling for a special case in driver strategy: vehicle declerates to new...

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.
parent 9cc2e6bd
No related branches found
No related tags found
No related merge requests found
......@@ -658,7 +658,12 @@ 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;
}
......
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