Skip to content

Commit

Permalink
FIx battery current in older panthers
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotochleb committed Jun 27, 2023
1 parent b9392ec commit 18110a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panther_battery/src/roboteq_republisher_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 18110a8

Please sign in to comment.