diff --git a/panther_battery/src/roboteq_republisher_node.py b/panther_battery/src/roboteq_republisher_node.py index f7d43ec5d..9674a1525 100755 --- a/panther_battery/src/roboteq_republisher_node.py +++ b/panther_battery/src/roboteq_republisher_node.py @@ -64,7 +64,7 @@ def _motor_controllers_state_cb(self, msg: DriverState) -> None: self._last_battery_info_time = rospy.get_time() self._battery_voltage = new_voltage - self._battery_current = msg.front.current + msg.rear.current + self._battery_current = -(msg.front.current + msg.rear.current) self._update_volt_mean(new_voltage) def _battery_pub_timer_cb(self, *args) -> None: