diff --git a/panther_battery/src/adc_node.py b/panther_battery/src/adc_node.py index cae4c5a80..0da93c56c 100755 --- a/panther_battery/src/adc_node.py +++ b/panther_battery/src/adc_node.py @@ -141,8 +141,8 @@ def _battery_timer_cb(self, *args) -> None: self._publish_battery_msg( self._battery_pub, - (V_bat_1 + V_bat_2) / 2.0, - (temp_bat_1 + temp_bat_2) / 2.0, + max(V_bat_1, V_bat_2), + max(temp_bat_1, temp_bat_2), -(I_bat_1 + I_bat_2) + I_charge_bat_1 + I_charge_bat_2, I_charge_bat_1 + I_charge_bat_2, )