Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

Merge pull request #43 in VECTO/vecto-dev from...

Merge pull request #43 in VECTO/vecto-dev from VECTO/mq_vecto-dev:feature/VECTO-1240_hybrid-P0_with_APT to develop

* commit '9c1fa9bb':
  rename PEV testcases
  changes in PEV AMT shift strategy: if torque demand in other gear is too high ignore gear
parents 2201f96d 9c1fa9bb
No related branches found
No related tags found
No related merge requests found
......@@ -346,7 +346,10 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
? VectoMath.Max(-GearboxModelData.Gears[currentGear.Gear].MaxTorque, 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;
......
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