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

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

at shift strategy: upshift 1C -> 2C only if gbx speed > 0

parent 3edcddb2
No related branches found
No related tags found
No related merge requests found
......@@ -225,7 +225,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
// UPSHIFT - Special rule for 1C -> 2C
if (!_gearbox.TorqueConverterLocked && ModelData.Gears.ContainsKey(gear + 1) &&
ModelData.Gears[gear + 1].HasTorqueConverter) {
ModelData.Gears[gear + 1].HasTorqueConverter && outAngularVelocity.IsGreater(0)) {
// C -> C+1
var nextGear = ModelData.Gears[gear + 1];
var gearRatio = nextGear.TorqueConverterRatio / currentGear.TorqueConverterRatio;
......
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