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

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

bugfix e2 shift strategy

parent 7a150677
No related branches found
No related tags found
No related merge requests found
......@@ -971,6 +971,9 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
PerSecond currOutAngularVelocity, NewtonMeter maxDriveTorque, NewtonMeter maxRecuperationTorque,
PowertrainPosition position, bool dryRun)
{
if (dryRun) {
return -outTorque;
}
return (-outTorque).LimitTo(maxDriveTorque, maxRecuperationTorque);
}
}
......
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