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

Skip to content
Snippets Groups Projects
Commit cbbc662e authored by Michael KRISPER's avatar Michael KRISPER
Browse files

reformated code for easier debugging

parent f3cf34cf
No related branches found
No related tags found
No related merge requests found
......@@ -330,17 +330,19 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
var gear = gearbox.Gears[(int)i];
var lossMap = CreateGearLossMap(gear, i, true, VehicleCategory.Unknown, gearbox.Type);
var shiftPolygon = gear.ShiftPolygon != null && gear.ShiftPolygon.SourceType != DataSourceType.Missing
? ShiftPolygonReader.Create(gear.ShiftPolygon)
: shiftPolygonCalc != null
? shiftPolygonCalc.ComputeDeclarationShiftPolygon(
gearbox.Type, (int)i, engineData?.FullLoadCurves[i + 1], gearbox.Gears,
engineData,
axlegearRatio, dynamicTyreRadius, runData.ElectricMachinesData?.FirstOrDefault()?.Item2)
: DeclarationData.Gearbox.ComputeShiftPolygon(
gearbox.Type, (int)i, engineData?.FullLoadCurves[i + 1], gearbox.Gears,
engineData,
axlegearRatio, dynamicTyreRadius, runData.ElectricMachinesData?.FirstOrDefault()?.Item2);
ShiftPolygon shiftPolygon;
if (gear.ShiftPolygon != null && gear.ShiftPolygon.SourceType != DataSourceType.Missing) {
shiftPolygon = ShiftPolygonReader.Create(gear.ShiftPolygon);
} else if (shiftPolygonCalc != null) {
shiftPolygon = shiftPolygonCalc.ComputeDeclarationShiftPolygon(gearbox.Type, (int)i,
engineData?.FullLoadCurves[i + 1], gearbox.Gears, engineData, axlegearRatio,
dynamicTyreRadius, runData.ElectricMachinesData?.FirstOrDefault()?.Item2);
} else {
shiftPolygon = DeclarationData.Gearbox.ComputeShiftPolygon(gearbox.Type, (int)i,
engineData?.FullLoadCurves[i + 1], gearbox.Gears, engineData, axlegearRatio,
dynamicTyreRadius, runData.ElectricMachinesData?.FirstOrDefault()?.Item2);
}
var gearData = new GearData {
ShiftPolygon = shiftPolygon,
MaxSpeed = gear.MaxInputSpeed,
......
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