Auton Selection on Controller V5

I wanted to create an auton selection program in the pre_auton that was controlled by the controller. Does the cortex receive commands from the controller during pre_auton?

Whether or not the brain receives data from the controller depends only on the competition mode. The brain does not receive data from the controller during disable or autonomous. As you are generally connecting to competition control when you arrive at a field, this makes the controller unsuited to selecting autonomous, as you will not be able to do so after attaching to the field hardware. This is irrespective of whether or not you even use the competition template provided with your development environment.

4 Likes

I have a working GUI OS. PM for details

My team has a case-switching mechanism to select their desired autonomous program with the controller. As @John TYler said above, you cannot use controller input once hooked up to the field control in pre-auton. However, since you do not have to power-cycle the V5 brain after hooking up to field control, the routine works like this

  1. Robot is off. walk it over to the field.
  2. Turn Brain on.
  3. Use controller to cycle to correct autonomous program
  4. plug into field control
  5. Robot runs autonomous that was selected
2 Likes

You can use the brain touch screen during pre-auton, fwiw.

I would not want to depend on the controller to make your auto selection.

You have 8 programs to select from the controller. That works for my teams (for now).

I decided to just write a selection program for the brain screen. Makes things easier. I can just select the auton after the controller is hooked up to the field. I also made it send the selection to the controller to display it as a security measure and the brain screen highlights the selected program in a brighter red or blue while still allowing the selection to be changed.

I didn’t want to do that because then any change in 1 of them has to be changed for every single one and quickly redownloading 8 programs sounds like a pain in the ass.

The only thing you will actually have change for everything is the drive and ports which isnt a common things to change during competitions.

HI. I am a rookie coach with a rookie team. How do you save all of the programs to the controller?

LIke you, we created multiple programs, each with a different autonomous. Our controller only shows the most current program that we’ve downloaded most recently.

Thanks.

When you turn on the controller (or if you go to the homescreen) you can use the arrow buttons to scroll through options. The middle one is ‘programs’. press A and it’ll bring you to another scrollable screen with all 8 programmable slots. Make sure when you download the programs that they don’t overwrite each other.

1 Like

In your programming software of choice there should be the option to select which port a particular program should be downloaded to. For V5 Vex Code in the center of the top of the IDE next to the name of the program there is an option to select the slot number.

I believe the default is slot 1.

1 Like