Pid encoding help

Hello, I Have coded a turn code that uses PID but has one issue and it is that I do not know how many ticks the encoder must change for 1 degree of rotation. Does anyone have a way to find this ratio for any robot?

there are so many factors that can change this its probably best to manually rotate the robot 1 degree and see how many ticks the encoders shift.

sounds good other than that are there any other good method for it

If you calculate the distance between the midpoint of your left and right wheels. Then you can imagine a circle with that diameter and calculate how far back and how far forward your wheels need to move along its circumference.

This also depends on whether you are using the external quadrature encoders, IMEs for 393 motors, or the internal encoders on V5 motors. Different encoders have different numbers of ticks per revolution.