From d9e48ecfbea24a1c37aec906d67a129f97d67316 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Wed, 7 Sep 2016 15:19:57 +0200 Subject: [PATCH] bugfix: corrected computation of average input speed for mod-data --- .../VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs index 8c4ef7bf04..13f4ba20f0 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs @@ -265,8 +265,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl protected override void DoWriteModalResults(IModalDataContainer container) { - var avgInAngularSpeed = (PreviousState.OutAngularVelocity + - CurrentState.OutAngularVelocity) / 2.0 * ModelData.Gears[Gear].Ratio; + var avgInAngularSpeed = (PreviousState.InAngularVelocity + + CurrentState.InAngularVelocity) / 2.0; container[ModalResultField.Gear] = Disengaged || DataBus.VehicleStopped ? 0 : Gear; container[ModalResultField.TC_Locked] = TorqueConverterLocked; -- GitLab