Skip to content

Commit

Permalink
fix bat temp and voltage on /battery topic (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkowalsk1 authored Aug 14, 2023
1 parent b6ec613 commit c98426c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panther_battery/src/adc_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit c98426c

Please sign in to comment.