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

Skip to content
Snippets Groups Projects
Commit faea4a5d authored by Stefanos Doumpoulakis's avatar Stefanos Doumpoulakis
Browse files

bugfix-hybridStrategy-power-comparison

Corrects comparison condition between battery available power and max electric motor power in hybrid strategy
parent 7ff1d661
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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