Pre Auton Controls

I have a code that tries to select an auton in the pre auton loop but nothing is happening. Someone said to use a while loop because it wasn’t already one, but I dont understandAuton Alpha.vex (18 KB)

If you are connected to a field control system before a match, the controller will be disabled and you will not be able to read any button presses.

Your code only tests the controller buttons once and then exits, you would need to keep testing for presses by placing everything in a while(true) loop, but it will only work if field control is not connected or the robot is enabled.