Im very new to VEX, and I don’t now how to make my code run. I’m not doing this for a competition, but for a school project to make a robot follow a line. I have 3 line sensors. When I run the code, nothing happens except for the purple box appearing. When I check the timer on the brain, it says driver control.
Code under a when autonomous
hat block only runs when the program is set into autonomous mode during a competition, using Competition Switch or something similar. If you don’t what this competition functionality you can replace all of your when autonomous
blocks with when started
hat blocks to have it run as soon as you start the program.
I don’t have a VEX controller in front of me so this exact path might be a bit off, but to run an autonomous program instead of driver control you will want to select your program on the controller then, instead of pressing play, click the button that looks like a trophy and then you should see an option to run autonomous.
Thanks for responding. Originally, I had when started blocks, but those still didn’t work.