From f6df79dfdf7368be4dc5ce151eb9e8d2e929f630 Mon Sep 17 00:00:00 2001 From: Iori Yanokura Date: Mon, 4 Nov 2024 23:44:17 +0900 Subject: [PATCH] Fixed typo current --- rcb4/armh7interface.py | 2 +- ros/kxr_controller/node_scripts/rcb4_ros_bridge.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rcb4/armh7interface.py b/rcb4/armh7interface.py index e6f1b8b4..f8dee192 100644 --- a/rcb4/armh7interface.py +++ b/rcb4/armh7interface.py @@ -1449,7 +1449,7 @@ def servo_states(self): return servo_on_ids return [] - def switch_reading_servo_crreunt(self, enable=True): + def switch_reading_servo_current(self, enable=True): if enable: value = 1 else: diff --git a/ros/kxr_controller/node_scripts/rcb4_ros_bridge.py b/ros/kxr_controller/node_scripts/rcb4_ros_bridge.py index 395b8799..a02ca9df 100644 --- a/ros/kxr_controller/node_scripts/rcb4_ros_bridge.py +++ b/ros/kxr_controller/node_scripts/rcb4_ros_bridge.py @@ -365,7 +365,7 @@ def log_error_and_close_interface(function_name): return False if self.read_current: - serial_call_with_retry(self.interface.switch_reading_servo_crreunt, enable=True, max_retries=3) + serial_call_with_retry(self.interface.switch_reading_servo_current, enable=True, max_retries=3) if self.read_temperature: serial_call_with_retry(self.interface.switch_reading_servo_temperature, enable=True, max_retries=3) @@ -1021,7 +1021,7 @@ def reinitialize_interface(self): self.interface.close() self.interface = self.setup_interface() if self.read_current: - serial_call_with_retry(self.interface.switch_reading_servo_crreunt, enable=True, max_retries=3) + serial_call_with_retry(self.interface.switch_reading_servo_current, enable=True, max_retries=3) if self.read_temperature: serial_call_with_retry(self.interface.switch_reading_servo_temperature, enable=True, max_retries=3) self.subscribe()