From a6c816e5a2c0136e75c92c18027c2e20219564d3 Mon Sep 17 00:00:00 2001 From: Richard Lin Date: Tue, 17 Mar 2026 01:16:48 -0700 Subject: [PATCH] Update PowerConditioning.py --- edg/parts/PowerConditioning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edg/parts/PowerConditioning.py b/edg/parts/PowerConditioning.py index 4e9fc506e..24b688707 100644 --- a/edg/parts/PowerConditioning.py +++ b/edg/parts/PowerConditioning.py @@ -396,7 +396,7 @@ def contents(self) -> None: self.r1 = self.Block(Resistor(resistance=self.r1_val)) self.r2 = self.Block(Resistor(resistance=self.r2_val)) - batt_voltage = self.pwr_in.link().voltage.hull(self.chg_in.link().voltage).hull(self.gnd.link().voltage) + batt_voltage = self.pwr_in.link().voltage.hull(self.chg_in.link().voltage) # taking the max of the current for the both direction. 0 lower bound batt_current = self.pwr_out.link().current_drawn.hull(self.chg_out.link().current_drawn).hull((0, 0))