mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-22 16:14:37 +08:00
Make mention of the torque_constant value in Torque Control docs
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user