Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

fix setting gearshift parameters IEPC: in case the Axlegear is included in the...

fix setting gearshift parameters IEPC: in case the Axlegear is included in the IEPC, ignore Axlegear component from input, set ratio to 1 for shift params calculation
parent 12f1b8b0
No related branches found
No related tags found
No related merge requests found
......@@ -746,9 +746,12 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl.DeclarationMode.PrimaryBusRunDa
protected override void CreateGearboxAndGearshiftData(VectoRunData runData)
{
var iepcInput = Vehicle.Components.IEPC;
var axleGearRequired = !iepcInput.DifferentialIncluded && !iepcInput.DesignTypeWheelMotor;
var axleGearRatio = axleGearRequired ? runData.AxleGearData.AxleGear.Ratio : 1.0;
runData.GearshiftParameters =
DataAdapter.CreateGearshiftData(
runData.AxleGearData?.AxleGear.Ratio ?? 1.0,
axleGearRatio,
null,
GearboxType.APTN,
Vehicle.Components.IEPC.Gears.Count
......
......@@ -781,9 +781,12 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl.DeclarationMode.SingleBus
protected override void CreateGearboxAndGearshiftData(VectoRunData runData)
{
runData.GearshiftParameters =
var iepcInput = PrimaryVehicle.Components.IEPC;
var axleGearRequired = !iepcInput.DifferentialIncluded && !iepcInput.DesignTypeWheelMotor;
var axleGearRatio = axleGearRequired ? runData.AxleGearData.AxleGear.Ratio : 1.0;
runData.GearshiftParameters =
DataAdapter.CreateGearshiftData(
runData.AxleGearData?.AxleGear.Ratio ?? 1.0,
axleGearRatio,
null,
GearboxType.APTN,
PrimaryVehicle.Components.IEPC.Gears.Count
......
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