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

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

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

Engine returned 0 Watt as DynamicFullLoadPower
parent e8e4d4c1
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