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

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

Pull request #268: bugfix in PCC preprocessor for IEPCs with integrated...

Pull request #268: bugfix in PCC preprocessor for IEPCs with integrated axlegear (axlegeardata is null)

Merge in VECTO/vecto-dev from VECTO/mq_vecto-dev:bugfix/VECTO-1695-adas-problems-in-vecto-0.7.9.2836 to develop

* commit '571fe081':
  bugfix in PCC preprocessor for IEPCs with integrated axlegear (axlegeardata is null)
parents ae9a769e 571fe081
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