no message

This commit is contained in:
2026-02-05 16:59:06 +01:00
parent b8783ebba4
commit 92e4393b12

View File

@@ -614,6 +614,16 @@ private function CalculateBatteryDistribution(float $pEvW, float $pSdlW): array
];
}
$totalPower_ist = 0;
foreach ($batteries as $bat) {
$totalPower_ist += GetValue($bat['register_bat_power']);
}
$this->SetValue("Aktuelle_Leistung_EV", $totalPower_ist/($pEvW + $pSdlW)*$pEvW);
$this->SetValue("Aktuelle_Leistung_SDL",, $totalPower_ist/($pEvW + $pSdlW)*$pSdlW);
return $finalOutput;
}