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

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

changes in PEV AMT shift strategy: if torque demand in other gear is too high ignore gear

parent cb4bc6b1
No related branches found
No related tags found
No related merge requests found
...@@ -346,7 +346,10 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -346,7 +346,10 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
? VectoMath.Max(-GearboxModelData.Gears[currentGear.Gear].MaxTorque, response.ElectricMotor.MaxDriveTorque) ? VectoMath.Max(-GearboxModelData.Gears[currentGear.Gear].MaxTorque, response.ElectricMotor.MaxDriveTorque)
: response.ElectricMotor.MaxDriveTorque; : response.ElectricMotor.MaxDriveTorque;
var tqCurrent = (response.ElectricMotor.ElectricMotorPowerMech / response.ElectricMotor.AngularVelocity).LimitTo(maxDriveTorque, maxGenTorque); var tqCurrent = (response.ElectricMotor.ElectricMotorPowerMech / response.ElectricMotor.AngularVelocity);
if (!tqCurrent.IsBetween(maxDriveTorque, maxGenTorque)) {
return double.NaN;
}
var engineSpeed = response.ElectricMotor.AngularVelocity; var engineSpeed = response.ElectricMotor.AngularVelocity;
......
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