Skip to content

Commit

Permalink
Fix battey type from li-pol to li-ion
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotochleb committed Jul 3, 2023
1 parent ce266ea commit 91e9c8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion panther_battery/src/adc_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _publish_battery_msg(
battery_msg.capacity = 20.0
battery_msg.design_capacity = 20.0
battery_msg.charge = battery_msg.percentage * battery_msg.design_capacity
battery_msg.power_supply_technology = BatteryState.POWER_SUPPLY_TECHNOLOGY_LIPO
battery_msg.power_supply_technology = BatteryState.POWER_SUPPLY_TECHNOLOGY_LION
battery_msg.present = True

V_bat_mean = self._count_mean(bat_pub, V_bat, self._V_bat_mean, self._V_bat_hist)
Expand Down
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 @@ -73,7 +73,7 @@ def _battery_pub_timer_cb(self, *args) -> None:
battery_msg.header.stamp = rospy.Time.now()
battery_msg.capacity = 20.0
battery_msg.design_capacity = 20.0
battery_msg.power_supply_technology = BatteryState.POWER_SUPPLY_TECHNOLOGY_LIPO
battery_msg.power_supply_technology = BatteryState.POWER_SUPPLY_TECHNOLOGY_LION

if (
self._battery_voltage == None
Expand Down

0 comments on commit 91e9c8a

Please sign in to comment.