diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs index 9407295bb257f59d0a17a7187c3f2b727ce37a22..2056f44fd34bea3a5ff856572ad6bfce26076d17 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs @@ -1899,7 +1899,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies } // if battery is getting empty try to set EM-torque to discharge battery to lower SoC boundary - if (maxEmTorque.IsSmaller(0) && (-emDrivePower).IsGreaterOrEqual(maxEmTorque * firstResponse.ElectricMotor.AngularVelocity)) { + if (maxEmTorque.IsSmaller(0) && emDrivePower.IsGreaterOrEqual(maxEmTorque * firstResponse.ElectricMotor.AngularVelocity)) { // maxEmTorque < 0 ==> EM can still propel // (-emDrivePower).IsGreaterOrEqual(maxEmTorque * firstResponse.ElectricMotor.AngularVelocity) ==> power available from battery for driving does not exceed max EM power (otherwise torque lookup may fail) //var emDriveTorque = ModelData.ElectricMachinesData.Where(x => x.Item1 == emPos).First().Item2.EfficiencyMap