From 91e9c8ac988df26b60e60ceaf4bdf0c7132cf386 Mon Sep 17 00:00:00 2001 From: Kotochleb Date: Mon, 3 Jul 2023 16:14:41 +0000 Subject: [PATCH] Fix battey type from li-pol to li-ion --- 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 999640c8..99b5ecda 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 9674a152..d2aa030b 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