From 0d83ad6b0efce7140bf71cd993ec302c857f22d3 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Wed, 12 Jan 2022 17:25:26 +0100 Subject: [PATCH] shiftstrategy E2: do not downshift if operating point in lower gear is too high for electric motor --- .../Models/SimulationComponent/Impl/PEVAMTShiftStrategy.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/PEVAMTShiftStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/PEVAMTShiftStrategy.cs index 6443025dec..cb842a7c3d 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/PEVAMTShiftStrategy.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/PEVAMTShiftStrategy.cs @@ -405,6 +405,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl } var nextGear = GearList.Predecessor(currentGear); + if (SpeedTooHighForEngine(nextGear, outAngularVelocity)) { + return currentGear; + } while (GearList.HasPredecessor(nextGear)) { // check skip gears -- GitLab