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

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

change comparison in gearbox for in-torque

parent 0da7ffac
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var halted = DataBus.DrivingAction == DrivingAction.Halt;
var driverDeceleratingNegTorque = DataBus.DriverBehavior == DrivingBehavior.Braking &&
(DataBus.BrakePower.IsGreater(0) || inTorque < 0);
(DataBus.BrakePower.IsGreater(0) || inTorque.IsSmaller(0));
var vehiclespeedBelowThreshold =
DataBus.VehicleSpeed.IsSmaller(Constants.SimulationSettings.ClutchDisengageWhenHaltingSpeed);
if (halted || (driverDeceleratingNegTorque && vehiclespeedBelowThreshold)) {
......
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