diff --git a/VectoCore/Models/SimulationComponent/Impl/CombustionEngine.cs b/VectoCore/Models/SimulationComponent/Impl/CombustionEngine.cs index b281cdbfc710a86de2317330cc71ed6d428eb4d7..b22b7105ab1fa4487671d64552969643114c927e 100644 --- a/VectoCore/Models/SimulationComponent/Impl/CombustionEngine.cs +++ b/VectoCore/Models/SimulationComponent/Impl/CombustionEngine.cs @@ -209,8 +209,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl var minTorque = CurrentState.FullDragTorque; var maxTorque = CurrentState.DynamicFullLoadTorque; if (gearboxFullLoad != null) { - minTorque = VectoMath.Min(minTorque, -gearboxFullLoad); - maxTorque = VectoMath.Max(maxTorque, gearboxFullLoad); + minTorque = VectoMath.Max(minTorque, -gearboxFullLoad); + maxTorque = VectoMath.Min(maxTorque, gearboxFullLoad); } CurrentState.EngineTorque = VectoMath.Limit(totalTorqueDemand, minTorque, maxTorque);