Motor spins wrong way during PID tuning

Hi All!

I’m tuning my Antigravity 4006 motor using the ODriveGUI, and seeing some incorrect results:

Here the motor starts in the right direction, but then jumps off. The GUI reports an unknown torque error.

The motor works with these settings most of the time, so I’m not sure what’s causing the jump.

Thank you in advance for the help!

If the motor accelerates too fast, it can sometimes lose track of the rotor and cause issues. Try increasing either your encoder.config.bandwidth or your motor.config.current_controller_bandwidth or both. max of ~ 4000 on each.