no message
This commit is contained in:
@@ -625,15 +625,18 @@ private function CalculateBatteryDistribution(float $pEvW, float $pSdlW): array
|
||||
}
|
||||
|
||||
|
||||
if(($pEvW + $pSdlW) === 0){
|
||||
$sumReq = (float)($pEvW + $pSdlW);
|
||||
|
||||
$this->SetValue("Aktuelle_Leistung_EV", $totalPower_ist/2);
|
||||
$this->SetValue("Aktuelle_Leistung_SDL", $totalPower_ist/2);
|
||||
if (!is_finite($sumReq) || abs($sumReq) < 0.01) {
|
||||
|
||||
}else{
|
||||
$this->SetValue("Aktuelle_Leistung_EV", $totalPower_ist / 2);
|
||||
$this->SetValue("Aktuelle_Leistung_SDL", $totalPower_ist / 2);
|
||||
|
||||
$this->SetValue("Aktuelle_Leistung_EV", $totalPower_ist/($pEvW + $pSdlW)*$pEvW);
|
||||
$this->SetValue("Aktuelle_Leistung_SDL", $totalPower_ist/($pEvW + $pSdlW)*$pSdlW);
|
||||
} else {
|
||||
|
||||
$this->SetValue("Aktuelle_Leistung_EV",($totalPower_ist / $sumReq) * $pEvW);
|
||||
|
||||
$this->SetValue("Aktuelle_Leistung_SDL",($totalPower_ist / $sumReq) * $pSdlW);
|
||||
}
|
||||
|
||||
return $finalOutput;
|
||||
|
||||
Reference in New Issue
Block a user