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

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

remove unused parameters

parent fb4aa8f9
No related branches found
No related tags found
No related merge requests found
......@@ -167,7 +167,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
var limits = torqueLimits.ToDictionary(e => e.Gear);
var numGears = gearbox.Gears.Count;
var fullLoadCurves = new Dictionary<uint, EngineFullLoadCurve>(numGears + 1);
fullLoadCurves[0] = EngineFullLoadCurve.Create(engine.FullLoadCurve, true);
fullLoadCurves[0] = FullLoadCurveReader.Create(engine.FullLoadCurve, true);
fullLoadCurves[0].EngineData = retVal;
foreach (var gear in gearbox.Gears) {
var maxTorque = VectoMath.Min(
......@@ -256,17 +256,17 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
if (gearbox.Type == GearboxType.ATPowerSplit && i == 0) {
// powersplit transmission: torque converter already contains ratio and losses
CretateTCFirstGearATPowerSplit(gearbox, gearData, i, tcShiftPolygon);
CretateTCFirstGearATPowerSplit(gearData, i, tcShiftPolygon);
}
if (gearbox.Type == GearboxType.ATSerial) {
if (i == 0) {
// torqueconverter is active in first gear - duplicate ratio and lossmap for torque converter mode
CreateTCFirstGearATSerial(gearbox, gearData, tcShiftPolygon);
CreateTCFirstGearATSerial(gearData, tcShiftPolygon);
}
if (i == 1 && gearDifferenceRatio >= DeclarationData.Gearbox.TorqueConverterSecondGearThreshold) {
// ratio between first and second gear is above threshold, torqueconverter is active in second gear as well
// -> duplicate ratio and lossmap for torque converter mode, remove locked transmission for previous gear
CreateTCSecondGearATSerial(gearbox, gearData, tcShiftPolygon);
CreateTCSecondGearATSerial(gearData, tcShiftPolygon);
// NOTE: the lower gear in 'gears' dictionary has index i !!
gears[i].Ratio = double.NaN;
gears[i].LossMap = null;
......
......@@ -145,7 +145,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
var limits = torqueLimits.ToDictionary(e => e.Gear);
var numGears = gbx == null ? 0 : gbx.Gears.Count;
var fullLoadCurves = new Dictionary<uint, EngineFullLoadCurve>(numGears + 1);
fullLoadCurves[0] = EngineFullLoadCurve.Create(engine.FullLoadCurve);
fullLoadCurves[0] = FullLoadCurveReader.Create(engine.FullLoadCurve);
fullLoadCurves[0].EngineData = retVal;
if (gbx != null) {
foreach (var gear in gbx.Gears) {
......@@ -203,17 +203,17 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
if (gearbox.Type == GearboxType.ATPowerSplit && i == 0) {
// powersplit transmission: torque converter already contains ratio and losses
CretateTCFirstGearATPowerSplit(gearbox, gearData, i, tcShiftPolygon);
CretateTCFirstGearATPowerSplit(gearData, i, tcShiftPolygon);
}
if (gearbox.Type == GearboxType.ATSerial) {
if (i == 0) {
// torqueconverter is active in first gear - duplicate ratio and lossmap for torque converter mode
CreateTCFirstGearATSerial(gearbox, gearData, tcShiftPolygon);
CreateTCFirstGearATSerial(gearData, tcShiftPolygon);
}
if (i == 1 && gearDifferenceRatio >= DeclarationData.Gearbox.TorqueConverterSecondGearThreshold) {
// ratio between first and second gear is above threshold, torqueconverter is active in second gear as well
// -> duplicate ratio and lossmap for torque converter mode, remove locked transmission for previous gear
CreateTCSecondGearATSerial(gearbox, gearData, tcShiftPolygon);
CreateTCSecondGearATSerial(gearData, tcShiftPolygon);
// NOTE: the lower gear in 'gears' dictionary has index i !!
gears[i].Ratio = double.NaN;
gears[i].LossMap = null;
......
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