as a global variable:
Code:
char my_setting = 0;
in the Default_Routine() (or wherever you process inputs):
Code:
if(competition_mode)
{
my_setting = p3_sw_trig; //whatever input you want to read
}
thus, settings will only be read when the robot is disabled. you can then use my_setting as the setting for whatever during autonomous.