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

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

bugfix: corrected computation of average input speed for mod-data

parent e201483f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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