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

Skip to content
Snippets Groups Projects
Commit ddc59f6e authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

Merge pull request #554 in VECTO/vecto-sim from...

Merge pull request #554 in VECTO/vecto-sim from ~EMQUARIMA/vecto-sim:bugfix/VECTO-610-tyrecertificationnumber-missing to master

* commit 'd8dc5a3d':
  fix: calculation of rDyn in declaration mode if multiple driven axles
parents 6e4dbeef d8dc5a3d
No related branches found
No related tags found
No related merge requests found
......@@ -911,8 +911,9 @@ Public Class GearboxForm
If (vehicle.Axles.Count < 2) Then
Return Nothing
End If
'TODO:
rDyn = DeclarationData.Wheels.Lookup(vehicle.Axles(1).Tyre.Dimension).DynamicTyreRadius
rdyn = vehicle.Axles.Where(Function(axle) axle.AxleType = AxleType.VehicleDriven) _
.Select(Function(da) DeclarationData.Wheels.Lookup(da.Tyre.Dimension).DynamicTyreRadius) _
.Average()
End If
If (rDyn.IsEqual(0)) Then
Return Nothing
......
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