Every time need calibration of ODrive when I reboot or restart the Odrive

After each reboot or restart of ODrive, I need to calibrate it every time. I used the following command for calibrating ODrive.

odrv0.axis0.requested_state = AXIS_STATE_FULL_CALIBRATION_SEQUENCE
odrv0.axis0.requested_state = AXIS_STATE_CLOSED_LOOP_CONTROL

I’m using Hall sensors, so


saved the configuration


but still, I need to calibrate ODrive every time. Please help, ASAP.

Did you also make the motor pre-calibrated?

Thank you for reply. Problem was solved,

odrv0.axis0.config.startup_closed_loop_control = True

That just means you hadn’t set the state to closed loop, i.e. you hadn’t turned it on. Now it turns on by itself. Nothing to do with calibration. But glad you got it working. :slight_smile: