Where do you put global variables and functions in the competition template used with the vex coding studio?
Global variables and functions need to be placed outside your functions. The safest place to declare them is before your pre_auton function.