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

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

fix testcase

parent 7d0a25e5
No related branches found
No related tags found
No related merge requests found
......@@ -139,6 +139,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
(AdditionalAux?.PowerDemandESSEngineOn(0.SI<Second>(), 1.SI<Second>(), angularSpeed) ?? 0.SI<Watt>());
var avgAngularSpeed = (CurrentState.AngularSpeed + PreviousState.AngularSpeed) / 2.0;
if (avgAngularSpeed.IsEqual(0)) {
return 0.SI<NewtonMeter>();
}
return CurrentState.PowerDemand / avgAngularSpeed;
}
......
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