Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions resources/external_control.urscript
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ thread torqueThread():
torque = cmd_torque
{% if ROBOT_SOFTWARE_VERSION >= v5.22.0 %} # ToDo: Increase to 5.23.0 once released
{% if ROBOT_SOFTWARE_VERSION < v6.0.0 %}
torque_command(torque, friction_comp=friction_compensation_enabled)
direct_torque(torque, friction_comp=friction_compensation_enabled)
{% elif ROBOT_SOFTWARE_VERSION >= v10.10.0 %}
torque_command(torque, friction_comp=friction_compensation_enabled)
direct_torque(torque, friction_comp=friction_compensation_enabled)
{% else %}
popup("Torque control is only supported from software 10.10.0 and upwards.", error=True, blocking=True)
{% endif %}
Expand Down Expand Up @@ -692,11 +692,11 @@ thread PDControlThread():
{% if ROBOT_SOFTWARE_VERSION < v6.0.0 %}
local tau = pd_controller_gains.kp * q_err - pd_controller_gains.kd * get_actual_joint_speeds()
tau = clamp_array(tau, max_joint_torques)
torque_command(tau, friction_comp=friction_compensation_enabled)
direct_torque(tau, friction_comp=friction_compensation_enabled)
{% elif ROBOT_SOFTWARE_VERSION >= v10.10.0 %}
local tau = pd_controller_gains.kp * q_err - pd_controller_gains.kd * get_actual_joint_speeds()
tau = clamp_array(tau, max_joint_torques)
torque_command(tau, friction_comp=friction_compensation_enabled)
direct_torque(tau, friction_comp=friction_compensation_enabled)
{% else %}
popup("Torque control is only supported from software 10.10.0 and upwards.", error=True, blocking=True)
{% endif %}
Expand Down
Loading