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

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

allow slipping clutch in first gear if pos. torque is required

parent bccc11d3
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
angularVelocityIn = _idleSpeed;
torqueIn = 0.SI<NewtonMeter>();
} else {
AddClutchLoss(outTorque, outAngularVelocity, startClutch || outAngularVelocity.IsEqual(0), out torqueIn, out angularVelocityIn);
AddClutchLoss(outTorque, outAngularVelocity, (DataBus.Gear == 1 && outTorque > 0) ||startClutch || outAngularVelocity.IsEqual(0), out torqueIn, out angularVelocityIn);
}
Log.Debug("to Engine: torque: {0}, angularVelocity: {1}, power {2}", torqueIn, angularVelocityIn,
Formulas.TorqueToPower(torqueIn, angularVelocityIn));
......
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