I am learning with odrive right now. I use oDrive for 3D printer (X, Y axis), i use Step/Dir mode (Arduino mega 2560 + ramps shield 1.4). It works wery well, but i must do calibration by myself in every start up oDrive. I read about 2 way how to do automation calibration. So i have two problems.
If i set „odrv0.axis0.motor.config.pre_calibrated = True“ and after that send „odrv0.axis0.requested_state = AXIS_STATE_MOTOR_CALIBRATION“ motor move little bit, after than make sound „beep“ next do nothing. I try to read error list but all of the error was „0“ (odrv0.axis0.error, odrv0.axis0.motor.error, odrv0.axis0.encoder.error)
If i try the „odrv0.axis0.requested_state = AXIS_STATE_STARTUP_SEQUENCE“ . I set „odrv0.axis0.config.startup_motor_calibration = True“ and „odrv0.axis0.config. startup_closed_loop_control = True“. After than switch off and switch on the power supply (odrive). Motor move little bit, after than make sond „beep“ next do nothing.
So i would like to asky you, which way is the best for use my example. Do you know where is a mistake? Do somebody have procedure how to do procces automation calibration?
Thank you very much
The best regards