@@ -270,13 +270,13 @@ thread torqueThread():
270
270
textmsg("ExternalControl: Starting torque thread")
271
271
while control_mode == MODE_TORQUE:
272
272
torque = cmd_torque
273
- {% if ROBOT_SOFTWARE_VERSION >= v5.22 .0 %} # ToDo: Increase to 5.23.0 once released
273
+ {% if ROBOT_SOFTWARE_VERSION >= v5.23 .0 %}
274
274
{% if ROBOT_SOFTWARE_VERSION < v6.0.0 %}
275
- torque_command (torque, friction_comp=friction_compensation_enabled)
276
- {% elif ROBOT_SOFTWARE_VERSION >= v10.10 .0 %}
277
- torque_command (torque, friction_comp=friction_compensation_enabled)
275
+ direct_torque (torque, friction_comp=friction_compensation_enabled)
276
+ {% elif ROBOT_SOFTWARE_VERSION >= v10.11 .0 %}
277
+ direct_torque (torque, friction_comp=friction_compensation_enabled)
278
278
{% else %}
279
- popup("Torque control is only supported from software 10.10 .0 and upwards.", error=True, blocking=True)
279
+ popup("Torque control is only supported from software 10.11 .0 and upwards.", error=True, blocking=True)
280
280
{% endif %}
281
281
{% else %}
282
282
popup("Torque control is only supported from software 5.23.0 and upwards.", error=True, blocking=True)
@@ -688,17 +688,17 @@ end
688
688
thread PDControlThread():
689
689
while control_mode == MODE_PD_CONTROLLER_JOINT or control_mode == MODE_PD_CONTROLLER_TASK:
690
690
local q_err = cmd_servo_q - get_actual_joint_positions()
691
- {% if ROBOT_SOFTWARE_VERSION >= v5.22 .0 %} # ToDo: Increase to 5.23.0 once released
691
+ {% if ROBOT_SOFTWARE_VERSION >= v5.23 .0 %}
692
692
{% if ROBOT_SOFTWARE_VERSION < v6.0.0 %}
693
693
local tau = pd_controller_gains.kp * q_err - pd_controller_gains.kd * get_actual_joint_speeds()
694
694
tau = clamp_array(tau, max_joint_torques)
695
- torque_command (tau, friction_comp=friction_compensation_enabled)
696
- {% elif ROBOT_SOFTWARE_VERSION >= v10.10 .0 %}
695
+ direct_torque (tau, friction_comp=friction_compensation_enabled)
696
+ {% elif ROBOT_SOFTWARE_VERSION >= v10.11 .0 %}
697
697
local tau = pd_controller_gains.kp * q_err - pd_controller_gains.kd * get_actual_joint_speeds()
698
698
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)
700
700
{% else %}
701
- popup("Torque control is only supported from software 10.10 .0 and upwards.", error=True, blocking=True)
701
+ popup("Torque control is only supported from software 10.11 .0 and upwards.", error=True, blocking=True)
702
702
{% endif %}
703
703
{% else %}
704
704
popup("Torque control is only supported from software 5.23.0 and upwards.", error=True, blocking=True)
0 commit comments