From c0a37acf551e9cd094fcc186b5983fa630154f90 Mon Sep 17 00:00:00 2001 From: Rasmus Larsson Date: Wed, 9 Apr 2025 11:40:58 +0300 Subject: [PATCH] Change comment of BatteryState.msg For the BatteryState percentage to be correctly named, it should be in the range of 0-100. The current naming is misleading, as it suggests the percentage is in the range of 0-1, which is not a percentage, but a fraction. Signed-off-by: Rasmus Larsson --- sensor_msgs/msg/BatteryState.msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensor_msgs/msg/BatteryState.msg b/sensor_msgs/msg/BatteryState.msg index c42ed6e1..22d1e1f3 100644 --- a/sensor_msgs/msg/BatteryState.msg +++ b/sensor_msgs/msg/BatteryState.msg @@ -40,7 +40,7 @@ float32 current # Negative when discharging (A) (If unmeasured NaN) float32 charge # Current charge in Ah (If unmeasured NaN) float32 capacity # Capacity in Ah (last full capacity) (If unmeasured NaN) float32 design_capacity # Capacity in Ah (design capacity) (If unmeasured NaN) -float32 percentage # Charge percentage on 0 to 1 range (If unmeasured NaN) +float32 percentage # Charge percentage on 0 to 100 range (If unmeasured NaN) uint8 power_supply_status # The charging status as reported. Values defined above uint8 power_supply_health # The battery health metric. Values defined above uint8 power_supply_technology # The battery chemistry. Values defined above