How do I connect two controllers to VexCode V5 Blocks?

I want to know how to setup two controllers in vexcode v5 blocks. I added both of the controllers, but I don’t know what to do from there. Can someone help me?

1 Like

If you know how to program with one controller, you know how to program with two. For example, If you want to spin an intake forward with one controller, and spin it reverse with the other controller, the code would look something like this

while(1){

        if(Controller1.ButtonA.pressing()){
          Intake.spin(forward);
        }
        else if(Controller2.ButtonA.pressing()){
          Intake.spin(reverse);
        }
        else{
          Intake.stop();
        }
      }

I can show you how to do it in blocks as well unless you can figure that out using this example.

1 Like

Heres blocks

1 Like

Hello everyone! Sorry, I don’t think I was clear. I meant to say how to connect two controllers. I coded both of the controllers in the project, and downloaded the project onto one of the controllers. However, I’m still having trouble connecting the other. It won’t show the download button when I plug in the connection cable in it.

The project doesn’t get downloaded onto the controller as far as I’m aware… It gets downloaded onto the brain. Two use two controllers, you want to connect Controller 1 to the brain with the v5 radio, and then connect Controller 2 to Controller 1 with a smart port cable. You will then need to upload your project through Controller 1 only, as Controller 2 is not connected to the brain directly.

4 Likes