forked from tbnobody/OpenDTU
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: DPL: limit scaling sanity checks
do not scale limit if inverter is not producing, as DC channel power is expected to be close to zero anyways. do not scale limit if current inverter limit is small, such that channels might produce very little power exactly because the limit is so low. move the calculation out of setNewPowerLimit and into a new function, so that we can make use of return statements there.
- Loading branch information
1 parent
50635ee
commit 64ad4bd
Showing
1 changed file
with
46 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters