@@ -44,7 +44,7 @@ def home(
4444 output_position_offset : Optional [dict [str , float ]] = None ,
4545 current_threshold : int = 5000 ,
4646 velocity_threshold : float = 0.001 ,
47- callback_functions : Optional ["Iterable[Optional[Callable[[], None]]]" ] = None ,
47+ callbacks : Optional ["Iterable[Optional[Callable[[], None]]]" ] = None ,
4848 ) -> None :
4949 """
5050 Call the home method for all actuators.
@@ -58,7 +58,7 @@ def home(
5858 Default is 0.0 for knee and 30.0 for ankle.
5959 current_threshold: The current threshold to apply to the actuators during homing. Default is 5000.
6060 velocity_threshold: The velocity threshold to apply to the actuators during homing. Default is 0.001.
61- callback_functions (Optional[Iterable[Optional[Callable[[], None]]]]):
61+ callbacks (Optional[Iterable[Optional[Callable[[], None]]]]):
6262 Optional list or iterable of callback functions, one per actuator,
6363 to be called when each actuator's homing completes.
6464 Each function should take no arguments and return None. If None, no callbacks are used.
@@ -67,15 +67,15 @@ def home(
6767 output_position_offset = {"knee" : 0.0 , "ankle" : np .deg2rad (30.0 )}
6868 if homing_direction is None :
6969 homing_direction = {"knee" : - 1 , "ankle" : - 1 }
70- for actuator , callback_fn in zip (self .actuators .values (), callback_functions or [None ] * len (self .actuators )):
70+ for actuator , callback in zip (self .actuators .values (), callbacks or [None ] * len (self .actuators )):
7171 actuator .home (
7272 homing_voltage = homing_voltage ,
7373 homing_frequency = homing_frequency ,
7474 homing_direction = homing_direction [actuator .tag ],
7575 output_position_offset = output_position_offset [actuator .tag ],
7676 current_threshold = current_threshold ,
7777 velocity_threshold = velocity_threshold ,
78- callback_fn = callback_fn ,
78+ callback = callback ,
7979 )
8080
8181 LOGGER .info (
0 commit comments