Quote:
Originally Posted by cilginbilgin
|
The portion of the code in the "while loop" will run continuously. The portion outside of the "while loop" will only run once (as soon as autonomous starts), and will never run again. Therefore, the code that is checking the ultrasonic sensor is never checked after the start of autonomous.
Remove the "while loop" around the motors, and place the while loop around all of your code. That should fix the problem.