From 9d008279627671c18fad568ea60df2e4f9cb40d1 Mon Sep 17 00:00:00 2001 From: Krzysztof Wojciechowski <49921081+Kotochleb@users.noreply.github.com> Date: Tue, 4 Jul 2023 13:05:07 +0200 Subject: [PATCH] Fix battey type from li-pol to li-ion (#137) --- panther_battery/src/adc_node.py | 2 +- panther_battery/src/roboteq_republisher_node.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/panther_battery/src/adc_node.py b/panther_battery/src/adc_node.py index 999640c87..99b5ecdaf 100755 --- a/panther_battery/src/adc_node.py +++ b/panther_battery/src/adc_node.py @@ -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) diff --git a/panther_battery/src/roboteq_republisher_node.py b/panther_battery/src/roboteq_republisher_node.py index 9674a1525..d2aa030b2 100755 --- a/panther_battery/src/roboteq_republisher_node.py +++ b/panther_battery/src/roboteq_republisher_node.py @@ -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