I am trying to program (VCS) an autonomous that is based on sensors. I am using the integrated encoders in the V5 smart motors. (I’ve taking out the vital part and put it in a new code, so ignore that it is running in the main bracket. I have checked in which direction the encoder value goes (it goes up):
However, it doesn’t seem to be working. The robot just keeps on driving forwards. I am pretty sure my code is at fault since I am basing it off of the way I used to do it on robotc. I have also tried to diagnose the problem by displaying the encoder values on the brain screen, and it works fine. Any help on what I need to change would be appreciated.