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

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

ATGearbox: use correct gear variable

parent 3ffde0f8
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var inAngularVelocity = outAngularVelocity * effectiveRatio;
var torqueLossResult = torqueConverterLocked
? ModelData.Gears[gear].LossMap.GetTorqueLoss(outAngularVelocity, outTorque)
: ModelData.Gears[Gear].TorqueConverterGearLossMap.GetTorqueLoss(outAngularVelocity, outTorque);
: ModelData.Gears[gear].TorqueConverterGearLossMap.GetTorqueLoss(outAngularVelocity, outTorque);
var inTorque = outTorque / effectiveRatio + torqueLossResult.Value;
......
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