MattSav
November 16, 2020, 2:05pm
1
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
‘’’
MattSav
November 16, 2020, 2:33pm
2
Ok, so I’ve restarted everything for about the 4th time and its now working
MattSav
November 16, 2020, 2:49pm
3
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
MattSav
November 16, 2020, 3:10pm
4
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 [ ]
?
MattSav
November 17, 2020, 8:47am
6
Thankyou, Looks like I was mis interpreting the instructions
1 Like