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

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

Corrected error on Econic Truck with Allison Gearbox: Torque Convert not...

Corrected error on Econic Truck with Allison Gearbox: Torque Convert not shifting until Engine overloaded
parent 747d825a
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
Log.Debug("engine speed would fall below idle speed - shift down");
return true;
}
if (inAngularVelocity.IsGreater(DataBus.EngineRatedSpeed) && Data.Gears.ContainsKey(gear + 1)) {
if (inAngularVelocity.IsGreaterOrEqual(DataBus.EngineRatedSpeed) && Data.Gears.ContainsKey(gear + 1)) {
NextGear.SetState(absTime, false, gear + 1, Data.Gears[gear + 1].HasLockedGear);
Log.Debug("engine speed would be above rated speed - shift up");
return true;
......
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