Cannot set torque_constant on new odrive

Hey, just got my first odrives for a project I’m working on and was following along with the getting started documentation until I was told to set the torque constant using odrv0.axis0.motor.config.torque_constant. Running this line throws an error saying the attribute doesnt exist and I have no idea why. See the full stacktrace below.

In [1]: odrv0.axis0.motor.config.torque_constant
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
c:\users\chris\documents\odrive\lib\site-packages\fibre\shell.py in <module>
----> 1 odrv0.axis0.motor.config.torque_constant

c:\users\chris\documents\odrive\lib\site-packages\fibre\remote_object.py in __getattribute__(self, name)
    243             return attr
    244         else:
--> 245             return object.__getattribute__(self, name)
    246             #raise AttributeError("Attribute {} not found".format(name))
    247

AttributeError: 'RemoteObject' object has no attribute 'torque_constant'

The same thing also happened when I tried to disable / enable the brake resistor.
Im using a 24V odrive v3.6 run on windows 10 using powershell and the latest python version (3.9.6) for reference . Would love some help

Probably a miamatch between odrivetool version and firmware version. Try updating odrivetool and/or firmware. (or better, use both directly from the repo)

1 Like