Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

Pull request #90: Solved Problem with SI-Value cannot be Infinity, when...

Pull request #90: Solved Problem with SI-Value cannot be Infinity, when maxTorque was 0 (during check for Upshift)

Merge in VECTO/vecto-dev from VECTO/mk_vecto-dev:develop to develop

* commit 'b96aab1a':
  Solved Problem with SI-Value cannot be Infinity, when maxTorque was 0 (during check for Upshift) Engine returned 0 Watt as DynamicFullLoadPower
parents e8e4d4c1 b96aab1a
No related branches found
No related tags found
No related merge requests found
......@@ -313,7 +313,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
? double.MaxValue.SI<NewtonMeter>()
: GearboxModelData.Gears[currentGear.Gear].ShiftPolygon
.InterpolateDownshift(response.Engine.EngineSpeed));
var reserve = 1 - inTorque / maxTorque;
var reserve = 1 - inTorque.Value() / maxTorque.Value();
if (reserve >= 0 /*ModelData.TorqueReserve */ && IsAboveDownShiftCurve(currentGear, inTorque, inAngularVelocity)) {
continue;
......
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