Open andyman198 opened 5 months ago
Does the request fail every time (e.g. when you run it in a loop)?
If you bypass the check, does it correctly print continuous pos/vel feedback?
Do you have a CAN logger available that you could connect to this bus? (e.g. a host PC with a CAN interface or CAN dongle, and can_logger
from python-can
)
I'm getting a message saying vbus request failed. I can bypass it and control the motor normally using the code in the example sketch.
I am using a Teensy4.1 with an odrive S1.
Example output:
14:15:35.910 -> Starting ODriveCAN demo 14:15:37.900 -> Waiting for ODrive... 14:15:38.129 -> found ODrive 14:15:40.115 -> attempting to read bus voltage and current 14:15:41.125 -> vbus request failed! 14:15:41.125 -> DC voltage [V]: 0.00 14:15:41.125 -> DC current [A]: 0.00 14:15:41.125 -> Enabling closed loop control... 14:15:41.418 -> ODrive running! 14:15:41.418 -> odrv0-pos:-0.00,odrv0-vel:0.01