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 1d4e7cb2 authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

correcting codition that engine speed is not too high after a downshift

parent c6d87fc4
Branches
Tags
No related merge requests found
......@@ -401,7 +401,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var tmpResponseDs = (ResponseDryRun)_gearbox.Request(absTime, dt, outTorque, outAngularVelocity, true);
SetGear(gbxState);
// done
if (tmpResponseDs.DeltaEngineSpeed.IsGreater(0) && tmpResponseDs.DeltaFullLoad - Formulas.InertiaPower(
if (tmpResponseDs.DeltaEngineSpeed.IsSmaller(0) && tmpResponseDs.DeltaFullLoad - Formulas.InertiaPower(
tmpResponseDs.Engine.EngineSpeed, DataBus.EngineInfo.EngineSpeed, EngineInertia, dt) < tmpResponseCurr.DeltaFullLoad) {
Downshift(absTime, gear);
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment