Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

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 ...@@ -72,7 +72,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
public IResponse Request(Second absTime, Second dt, NewtonMeter torque, PerSecond angularVelocity, bool dryRun) 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); return NextComponent.Request(absTime, dt, torque, angularVelocity, dryRun);
} }
var avgAngularSpeed = (PreviousState.InAngularVelocity + angularVelocity) / 2.0; var avgAngularSpeed = (PreviousState.InAngularVelocity + angularVelocity) / 2.0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment