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

Skip to content
Snippets Groups Projects
Commit 67bdb7f5 authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

Pull request #927: Bugfix/VECTO-1692 unexpected response response overload ud refload

Merge in VECTO/vecto-sim from VECTO/mq_vecto-sim:bugfix/VECTO-1692-unexpected-response-response-overload-ud-refload to develop

* commit '1d4e7cb2':
  correcting codition that engine speed is not too high after a downshift
  AT Gearbox: downshift if below target speed only if engine speed in lower gear is below max engine speed
parents 058a3479 1d4e7cb2
No related branches found
No related tags found
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.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.
Finish editing this message first!
Please register or to comment