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 bd1017c6 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

Merge branch 'develop' into feature/VECTO-1460-apt-n-gearbox

parents c27e4ff4 e236f050
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
public IList<IRESSResponse> Request(Second absTime, Second dt, Watt powerDemand, Second tPulse, bool dryRun)
{
var current = 0.SI<Ampere>();
if (!powerDemand.IsEqual(0)) {
if (!powerDemand.IsEqual(0, 1e-3)) {
var solutions = VectoMath.QuadraticEquationSolver(InternalResistance(tPulse).Value(), OpenCircuitVoltage.Value(),
-powerDemand.Value());
current = SelectSolution(solutions, powerDemand.Value(), dt);
......
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