diff --git a/docs/control-modes.rst b/docs/control-modes.rst index 91b9f754..ddc5d2e5 100644 --- a/docs/control-modes.rst +++ b/docs/control-modes.rst @@ -222,6 +222,12 @@ Set the control mode odrv0.axis0.controller.config.control_mode = CONTROL_MODE_TORQUE_CONTROL +Set the torque constant, e.g.: + +.. code:: iPython + + # Approximately 8.23 / Kv where Kv is in the units [rpm / V] + odrv0.axis0.motor.config.torque_constant = 8.23 / 150 You can now control the torque (Nm) with e.g. @@ -229,7 +235,6 @@ You can now control the torque (Nm) with e.g. odrv0.axis0.controller.input_torque = 0.1 - .. note:: For safety reasons, the torque mode velocity limiter is enabled by default. This works by reducing the torque of the motor according to :code:`vel_limit` and :code:`vel_gain`, as shown below.