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

Skip to content
Snippets Groups Projects
Commit d9ad51c2 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

Pull request #235: consider boosting limitations: boosting limitations...

Pull request #235: consider boosting limitations: boosting limitations dictionary did not set the locked-TC flag, so lookup with the current gear yields no result

Merge in VECTO/vecto-dev from VECTO/mq_vecto-dev:bugfix/VECTO-1609-boosting-limitations-are-not-considered-in-the-simulation to develop

* commit 'dda0e617':
  consider boosting limitations: boosting limitations dictionary did not set the locked-TC flag, so lookup with the current gear yields no result
parents af408e34 dda0e617
No related branches found
No related tags found
No related merge requests found
......@@ -1127,7 +1127,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
FullDriveTorque = gearboxData.Gears[key].MaxTorque
}
}.ToList();
retVal[new GearshiftPosition(key)] = new VehicleMaxPropulsionTorque(gbxLimit);
retVal[new GearshiftPosition(key, true)] = new VehicleMaxPropulsionTorque(gbxLimit);
continue;
}
......@@ -1159,7 +1159,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
// if no gearbox limit is defined, MaxTorque is null;
// in case of P3 or P4, do not apply gearbox limit to propulsion limit as ICE is already cropped with max torque
var gearboxTorqueLimit = isP3OrP4Hybrid ? null : gearboxData.Gears[key].MaxTorque;
retVal[new GearshiftPosition(key)] = new VehicleMaxPropulsionTorque(IntersectMaxPropulsionTorqueCurve(entries, gearboxTorqueLimit));
retVal[new GearshiftPosition(key, true)] = new VehicleMaxPropulsionTorque(IntersectMaxPropulsionTorqueCurve(entries, gearboxTorqueLimit));
}
......
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