Make mention of the torque_constant value in Torque Control docs

This commit is contained in:
Paul Guenette
2022-02-15 22:30:00 -05:00
parent bfbf671541
commit b96135774d
+6 -1
View File
@@ -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.