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

Skip to content
Snippets Groups Projects
Commit 084d9300 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

Retarder: Corrected error for TransmissionInputRetarder when Gearbox is...

Retarder: Corrected error for TransmissionInputRetarder when Gearbox is diseanged but clutch is closed.
parent 18ad7596
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
public IResponse Request(Second absTime, Second dt, NewtonMeter torque, PerSecond angularVelocity, bool dryRun)
{
if (angularVelocity == null || (_primaryRetarder && !DataBus.ClutchInfo.ClutchClosed(absTime))) {
if (angularVelocity == null || (_primaryRetarder && (!DataBus.ClutchInfo.ClutchClosed(absTime) || !DataBus.GearboxInfo.GearEngaged(absTime)))) {
return NextComponent.Request(absTime, dt, torque, angularVelocity, dryRun);
}
var avgAngularSpeed = (PreviousState.InAngularVelocity + angularVelocity) / 2.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