@@ -272,9 +272,9 @@ thread torqueThread():
272272 torque = cmd_torque
273273 {% if ROBOT_SOFTWARE_VERSION >= v5.22.0 %} # ToDo: Increase to 5.23.0 once released
274274 {% if ROBOT_SOFTWARE_VERSION < v6.0.0 %}
275- torque_command (torque, friction_comp=friction_compensation_enabled)
275+ direct_torque (torque, friction_comp=friction_compensation_enabled)
276276 {% elif ROBOT_SOFTWARE_VERSION >= v10.10.0 %}
277- torque_command (torque, friction_comp=friction_compensation_enabled)
277+ direct_torque (torque, friction_comp=friction_compensation_enabled)
278278 {% else %}
279279 popup("Torque control is only supported from software 10.10.0 and upwards.", error=True, blocking=True)
280280 {% endif %}
@@ -692,11 +692,11 @@ thread PDControlThread():
692692 {% if ROBOT_SOFTWARE_VERSION < v6.0.0 %}
693693 local tau = pd_controller_gains.kp * q_err - pd_controller_gains.kd * get_actual_joint_speeds()
694694 tau = clamp_array(tau, max_joint_torques)
695- torque_command (tau, friction_comp=friction_compensation_enabled)
695+ direct_torque (tau, friction_comp=friction_compensation_enabled)
696696 {% elif ROBOT_SOFTWARE_VERSION >= v10.10.0 %}
697697 local tau = pd_controller_gains.kp * q_err - pd_controller_gains.kd * get_actual_joint_speeds()
698698 tau = clamp_array(tau, max_joint_torques)
699- torque_command (tau, friction_comp=friction_compensation_enabled)
699+ direct_torque (tau, friction_comp=friction_compensation_enabled)
700700 {% else %}
701701 popup("Torque control is only supported from software 10.10.0 and upwards.", error=True, blocking=True)
702702 {% endif %}
0 commit comments