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

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

gearbox: additional criterion for disengage before stop driving downhill (neg....

gearbox: additional criterion for disengage before stop driving downhill (neg. torque): gradient has to be negative or in-speed below idle speed
parent f21be59d
No related branches found
No related tags found
No related merge requests found
......@@ -209,6 +209,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var halted = DataBus.DrivingAction == DrivingAction.Halt;
var driverDeceleratingNegTorque = DataBus.DriverBehavior == DrivingBehavior.Braking && DataBus.DrivingAction == DrivingAction.Brake &&
(DataBus.RoadGradient.IsSmaller(0) || inAngularVelocity.IsSmaller(DataBus.EngineIdleSpeed)) &&
(DataBus.BrakePower.IsGreater(0) || inTorque.IsSmaller(0));
var vehiclespeedBelowThreshold =
DataBus.VehicleSpeed.IsSmaller(Constants.SimulationSettings.ClutchDisengageWhenHaltingSpeed);
......
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