Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix battery type from li-pol to li-ion #137

Merged
merged 1 commit into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading