Background: Working on closed loop control for a 3d printer. Brand new to odrive. Going to have to use step/dir control; I have two BLDCs from Anaheim Automation, and the 8192ppr encoder sold on the odriverobotics site. Encoders are installed (apparently) correctly.
I’ve gotten to where the motors are working. I calibrated the motor and saved the calibration and set pre_calibrated = True. I can change .controller.pos_setpoint and the motor turns. Then I saved config and rebooted.
Now every startup I have to run
AXIS_STATE_ENCODER_OFFSET_CALIBRATION before I can do AXIS_STATE_CLOSED_LOOP_CONTROL. Clearly this isn’t optimal. Reading the (somewhat spare >:) ) documentation suggests that I need “use_index = True” and then “AXIS_STATE_ENCODER_INDEX_SEARCH” before I can set pre_calibrated to “True” on the encoder.
However, when I set use_index = True, and then initiate an index search, I get this:
encoder: no error
controller: no error
It’s a 24v board, BTW, with a 24v PSU.
J. Steve White