Hi everyone, i have an idea for a new routine selection using a spare encoder that i have, plan is to write a routine so when you turn a sprocket it changes the value of an int. which then in turn changes the routine (will use the speaker to determine the autonomous routine enables)
so … some questions questions.
when does pre-auton work … ? when is it available … ? so like is it available when joysticks are available, or is it always available ???
What do you mean by “pre autonomous”? Do you mean before the match starts?
Our team has multiple autonomous programs that we switch on and off by Limit Switches held down by adjustable switches. I know that there are other ways to do it too, like with a potentiometer.
The link below is an old post that gave some explanation of how the ROBOTC competition template works, there’s not much magic to it, it contains the main task and runs pre_auton before going into a loop waiting for the competition state to change. https://vexforum.com/showpost.php?p=237430&postcount=1