no message

This commit is contained in:
mh
2026-04-17 12:09:16 +02:00
parent 80890e4e12
commit 622c57af96
+2 -2
View File
@@ -627,7 +627,7 @@ private function CalculateBatteryDistribution(float $pEvW, float $pSdlW): array
$totalPower_ist = 0; $totalPower_ist = 0;
foreach ($batteriesRaw as $bat) { foreach ($batteriesRaw as $bat) {
$totalPower_ist += (-1)*GetValue($bat->register_bat_power); $totalPower_ist += GetValue($bat->register_bat_power);
} }
// ---------------------------- // ----------------------------
@@ -664,7 +664,7 @@ private function CalculateBatteryDistribution(float $pEvW, float $pSdlW): array
// aktuelle - SDL_SOLL = aktuelle EV // aktuelle - SDL_SOLL = aktuelle EV
// ---------------------------- // ----------------------------
$this->SetValue("Aktuelle_Leistung_SDL", $pSdlW); $this->SetValue("Aktuelle_Leistung_SDL", $pSdlW);
$this->SetValue("Aktuelle_Leistung_EV", $totalPower_ist - $pSdlW); $this->SetValue("Aktuelle_Leistung_EV", $totalPower_ist + $pSdlW);
return $finalOutput; return $finalOutput;
} }