In my application, I need to know when the motor is decelerating so I can issue another position command to keep the motor moving without stopping. Im sending “r odrv0.axis0.encoder.vel_estimate” and look for when the returned value is decreasing. After sending a few dozen of this command the odrive hangs, the current goes from 55ma idle to 43ms, and the comm port is removed from the os (using raspberry pi)
I have tried sending the command every 10ms, 100ms, and 1 second and no change on how and when it dies. Rarely instead of the current going to 43ma, it raps up to over 1.7 amps, although the usb serial port is still dead.
Any ideas?
UPDATE: Just a few minutes after I posted this, the uart stops responding to anything, yet the odrivetool works fine. Wheres The Fun? I reflashed the firmware and now its back alive.
UPADTE2: After reading this post, I decided to comment out the code in ascii_protocol.cpp that I was not using. Serial performance went from lasting less than a minute to running (currently) 5 minutes. I’ll take that as a fix but it would be great if a ‘real’ fix was found. Obviously its memory releated…