Problem with the encoder calibration

I’ve been using this for a few weeks now and everything was going fine, today I was having some problems so I tried to recalibrate everything. When I run AXIS_STATE_ENCODER_INDEX_SEARCH it just twitches back and forth instead of spinning in one direction. Also when I run the full calibration it spins in one direction then twitches instead of going the other way.
Thanks for the help!

Hi

Is it connected to something or just a motor and encoder?

Cheers

It was connected to something but i tried it unconnected and the same thing happened.

Hi

Have you tried just encoder calibration?

Cheers

It can do the offset calibration but anything else it just twitches back and forth

Hi

Try shadow count, if that doesn’t change there is something wrong with the encoder

Cheers