Hello, I was programming an encoder to control my robot, but when I initialize forward, the robot will start going forward and won’t stop. I have the code that includes the encoder below
I recently wrote a comprehensive post about all of the things that can cause encoders to go bad, which may be of use to you, now or sometime in the future: Why I’ll Never Use IMEs Again.