Would someone be able to take a look at my code? For some reason in autonomous, it will just keep going straight when I do a forward motion w/encoders and run in a continuous loop. Whenever I do a turning motion, it does fine and stops where needed. Not sure why it "freezes" when it goes straight.

If that's supposed to go straight, then you should correct the motor polarity by adding "reversed" to the leftDrive motor pragma and change the -50 value to 50 instead. What happened was that your left motor encoder is decreasing and your right motor encoder is increasing and when you add them together they cancel each other out so the summed value is probably not going up. So the code will run forever.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum