Skip to content

Commit 2d905de

Browse files
committed
Fix parameter declaration
1 parent 5f01368 commit 2d905de

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/bitbots_motion/bitbots_hcm/bitbots_hcm/hcm_dsd/hcm_blackboard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ def __init__(self, node: Node):
115115
self.last_different_imu_state_time: Optional[Time] = None
116116

117117
# Battery state
118-
self.battery_voltage_threshold: float = self.node.get_parameter("battery_voltage_threshold").value
119-
self.battery_debounce_time: float = self.node.get_parameter("battery_debounce_time").value
118+
self.battery_voltage_threshold: float = self.node.get_parameter("battery.voltage_threshold").value
119+
self.battery_debounce_time: float = self.node.get_parameter("battery.debounce_time").value
120120
self.battery_voltage: Optional[float] = None
121121

122122
# Diagnostics state

src/bitbots_motion/bitbots_hcm/config/hcm_wolfgang.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747

4848
# Battery
4949
battery:
50-
voltage_threshold: 18.0 # Voltage under which the battery is considered low
51-
debounce_time: 5.0 # Time the battery has to be under the threshold to be considered low [s]
50+
voltage_threshold: 18.0 # Voltage under which the battery is considered low
51+
debounce_time: 5.0 # Time the battery has to be under the threshold to be considered low [s]
5252

0 commit comments

Comments
 (0)