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

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

bugfix in PCC preprocessor for IEPCs with integrated axlegear (axlegeardata is null)

(cherry picked from commit 571fe081)
parent d76ea79e
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
private GearshiftPosition FindLowestGearForSpeed(MeterPerSecond speed)
{
var data = Container.RunData;
var ratio = data.AxleGearData.AxleGear.Ratio * (data.AngledriveData?.Angledrive.Ratio ?? 1.0) /
var ratio = (data.AxleGearData?.AxleGear.Ratio ?? 1.0 ) * (data.AngledriveData?.Angledrive.Ratio ?? 1.0) /
data.VehicleData.DynamicTyreRadius;
var possible = new List<GearshiftPosition>();
foreach (var gear in data.GearboxData.GearList) {
......
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