Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

gearbox: when halted: disengage until next time interval; if driver is braking...

gearbox: when halted: disengage until next time interval; if driver is braking and braking power > 0 and clutch would be slipping and vehicle is below certain threshold -> disengage for the current time interval
parent d86e2a31
No related branches found
No related tags found
No related merge requests found
......@@ -229,6 +229,19 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
if (DataBus.VehicleStopped) {
_engageTime = absTime;
}
if (DataBus.DriverBehavior == DrivingBehavior.Halted) {
_engageTime = absTime + dt;
}
var engineSpeedNorm = (angularVelocity - DataBus.EngineIdleSpeed) /
(DataBus.EngineRatedSpeed - DataBus.EngineIdleSpeed);
if (DataBus.DriverBehavior == DrivingBehavior.Braking && DataBus.BrakePower.IsGreater(0.SI<Watt>()) &&
engineSpeedNorm < Constants.SimulationSettings.ClutchClosingSpeedNorm &&
DataBus.VehicleSpeed.IsSmaller(15.KMPHtoMeterPerSecond())) {
_engageTime = absTime + dt;
Disengaged = true;
return RequestGearDisengaged(absTime, dt, torque, angularVelocity, dryRun);
}
IResponse retVal;
// TODO MQ 2016/03/10: investigate further the effects of having the condition angularvelocity != 0
......
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