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

fix: mapping of vecto gears to voith model gear count

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