Switch between programming challenge and normal competition

I understand that there is a “programming challenge” competition, separate from the main competition, that consists of a 1-minute autonomous period. The problem is, we don’t know how to switch between two subroutines in the code depending on which mode it’s in. Is there some sort of global variable for determining if the robot is in Programming Challenge mode or in normal competition?


You would need to make that determination using some type of user input to your program. Some examples of doing this would be using a jumper or using the LCD display.