no message

This commit is contained in:
belevo\mh
2026-05-05 15:13:11 +02:00
parent ce07977b20
commit 9323554526
+11 -8
View File
@@ -543,8 +543,8 @@ class Bat_EV_SDL_V4 extends IPSModule
$rawSDL = $pSdlW * $factor;
} else {
// KEIN Sprung mehr auf Soll!
$rawEV = 0.0;
$rawSDL = 0.0;
$rawEV = (float)$this->GetBufferSafe("CUR_EV_VAL");
$rawSDL = (float)$this->GetBufferSafe("CUR_SDL_VAL");
}
$filterAktiv = $this->ReadPropertyBoolean("FilterAktiv");
@@ -629,7 +629,8 @@ class Bat_EV_SDL_V4 extends IPSModule
$hits = 0;
}
} else {
$lastVal = $this->MoveTowards($lastVal, $pending, $maxRampWPerSec * $dt);
// Rohwert passt nicht zum Sollwert:
// NICHT Richtung Soll laufen, sondern alten Wert halten.
$hits = 0;
}
@@ -846,14 +847,16 @@ class Bat_EV_SDL_V4 extends IPSModule
}
private function MoveTowards(float $current, float $target, float $maxStep): float
{
if (abs($target - $current) <= $maxStep) {
return $target;
}
{
$maxStep = max(0.0, $maxStep);
return $current + (($target > $current) ? $maxStep : -$maxStep);
if (abs($target - $current) <= $maxStep) {
return $target;
}
return $current + (($target > $current) ? $maxStep : -$maxStep);
}
private function SetIdentValue(string $ident, $value): void
{
$id = @$this->GetIDForIdent($ident);