TypeError: 'float' object is not subscriptable

Hi,

I’ve just installed the software and driver, its connected so went to set the current limit and I get the error below.

Yes thats a small value but I’m using tiny Maxxon motors, I’ve tried various values but get the same error.

Any ideas?
‘’’
In [1]: odrv0.axis0.motor.config.current_lim [1]

TypeError Traceback (most recent call last)
c:\users\dell precision.platformio\penv\lib\site-packages\fibre\shell.py in
----> 1 odrv0.axis0.motor.config.current_lim [1]

TypeError: ‘float’ object is not subscriptable

‘’’

Ok, so I’ve restarted everything for about the 4th time and its now working :slight_smile:

I was fooled!! It was taking ages to do a command and nothing seemed to be working. Another reboot and the error is back so it looks like im stuck at the first hurdle :frowning:

I’ve just tried it on a Raspi 4 and I get the same error message:

‘’’

Connected to ODrive 207A39914D4D as odrv0
In [1]: odrv0.axis0.motor.config.current_lim [3]

TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/fibre/shell.py in
----> 1 odrv0.axis0.motor.config.current_lim [3]

TypeError: ‘float’ object is not subscriptable

In [2]:
‘’’

It looks like you’re trying to use [ ]?

Thankyou, Looks like I was mis interpreting the instructions :slight_smile:

1 Like