Before 12-19/Autonomous/autonomous.c
task configGuiEvent() {
	char event[GUI_NUM_BYTES_PER_EVENT];
	
	while (true) {
		gui_event_get(event);
		
		if (!strcmp(event, "start_delay")) {
			configStartDelay = gui_property_get(configSpinnerStartDelay, GUI_PROPERTY_SPINNER_VALUE);
			configAcceptStartDelay = true;
		} else if (!strcmp(event, "start_position")) {
			if (gui_property_get(configRadioButtonStartPositionOnRamp, GUI_PROPERTY_BUTTON_RADIO_CHECKED)) {
				configStartPosition = START_POSITION_RAMP;
			} else if (gui_property_get(configRadioButtonStartPositionOnFloor, GUI_PROPERTY_BUTTON_RADIO_CHECKED)) {
				configStartPosition = START_POSITION_FLOOR;
			}
			
			configAcceptStartPosition = true;
		}
	}
}
// Event task (receives all registered GUI events)
Event task (receives all registered GUI events)
Event task ( receives all registered GUI events )
task configGuiEvent() {
	char event[GUI_NUM_BYTES_PER_EVENT];
	while (true) {
		gui_event_get(event);
		if (!strcmp(event, "start_delay")) {
			configStartDelay = gui_property_get(configSpinnerStartDelay, GUI_PROPERTY_SPINNER_VALUE);
			configAcceptStartDelay = true;
		} else if (!strcmp(event, "start_position")) {
			if (gui_property_get(configRadioButtonStartPositionOnRamp, GUI_PROPERTY_BUTTON_RADIO_CHECKED)) {
				configStartPosition = START_POSITION_RAMP;
			} else if (gui_property_get(configRadioButtonStartPositionOnFloor, GUI_PROPERTY_BUTTON_RADIO_CHECKED)) {
				configStartPosition = START_POSITION_FLOOR;
			}
			configAcceptStartPosition = true;
		}
	}
}
task configGuiEvent ( ) { char event [ GUI_NUM_BYTES_PER_EVENT ] ; while ( true ) { gui_event_get ( event ) ; if ( ! strcmp ( event , " " ) ) { configStartDelay = gui_property_get ( configSpinnerStartDelay , GUI_PROPERTY_SPINNER_VALUE ) ; configAcceptStartDelay = true ; } else if ( ! strcmp ( event , " " ) ) { if ( gui_property_get ( configRadioButtonStartPositionOnRamp , GUI_PROPERTY_BUTTON_RADIO_CHECKED ) ) { configStartPosition = START_POSITION_RAMP ; } else if ( gui_property_get ( configRadioButtonStartPositionOnFloor , GUI_PROPERTY_BUTTON_RADIO_CHECKED ) ) { configStartPosition = START_POSITION_FLOOR ; } configAcceptStartPosition = true ; } } }
Event task (receives all registered GUI events)
Event task ( receives all registered GUI events )