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 7011769d authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

bugfix shift strategy voith - corrected index in shiftlines array

parent 4558d04f
No related branches found
No related tags found
No related merge requests found
......@@ -220,7 +220,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var nextGear = _gearbox.TorqueConverterLocked ? gear + 1 : gear;
var shiftSpeed = UpshiftLines[(int)gear].LookupShiftSpeed(
var shiftSpeed = UpshiftLines[(int)gear + (dualTCTransmission ? 2 : 1)].LookupShiftSpeed(
_loadStage, DataBus.RoadGradient, DataBus.DriverAcceleration, _accMin, _accMax);
var shiftSpeedGbxOut = shiftSpeed / ModelData.Gears[nextGear].Ratio;
if (outAngularVelocity > shiftSpeedGbxOut) {
......@@ -246,7 +246,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
return false;
}
var shiftSpeed = DownshiftLines[(int)gear].LookupShiftSpeed(
var shiftSpeed = DownshiftLines[(int)gear + (dualTCTransmission ? 2 : 1)].LookupShiftSpeed(
_loadStage, DataBus.RoadGradient, DataBus.DriverAcceleration, -0.4.SI<MeterPerSquareSecond>(),
-0.2.SI<MeterPerSquareSecond>());
if (inAngularVelocity < shiftSpeed) {
......
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