Controller - Robot Config - VEXcode Text

When starting to program with VEXcode V5 Text, Controller commands will not appear in the Command Reference until a Controller has been configured.

  • You can only configure two Controllers per project.
  • A Clawbot Template (Drivetrain) example project is used for the following configuration of a Controller.

Here are the different options when configuring a Controller:

  • Adding a Controller
  • Changing a Controller’s Left and Right Buttons
  • Changing a Controller’s Joysticks
  • Changing a Controller’s Arrows and Letters Buttons
  • Switching the Direction of a Controller’s Buttons
  • Deleting a Controller

Adding a Controller

To configure a Controller, select the Robot Configuration button to open the Robot Configuration window. A project must be open in order to use the Robot Configuration window.

file-0BbnuX6XwG.png

Select “Add a device.”

file-oSbdzn7Fr6.png

Select "Controller."

file-n2krMOoyzH.png

If you want to program the Controller using VEXcode V5 Text, select “Done” to complete the configuration or “Cancel” to return back to the Robot Configuration window.

file-2vjKpuqxH2.png

Note: If you want to configure the Controller for use without programming, see the additional options below.


Changing a Controller’s Left and Right Buttons

You can change which motors the Left and Right buttons control by selecting the buttons to cycle through the motors until the desired motor is shown.

file-ZvwT1d6ZOv.png

Note: The motors must be configured before assigning actions to buttons. For more information on how to configure motors, click here.


Changing a Controller’s Joysticks

You can change the drive-mode of the robot by selecting the Joysticks to cycle through the modes until the desired mode is shown. The four modes are: Left Arcade, Right Arcade, Split Arcade, Tank. 

file-67c6wdxfzQ.png

Note: The Drivetrain must be configured before assigning a drive-mode. A Drivetrain can be configured with a gyro and without a gyro.


Changing a Controller’s Arrow and Letter Buttons

You can change which motors the Arrow and Letter buttons control by selecting the buttons to cycle through the motors until the desired motor is shown.

file-2rfZ9xu1g4.png

Note: The motors must be configured before assigning actions to buttons. For more information on how to configure motors, click here.

Note: Only the Up and Down Arrow buttons and X and B Letter buttons are configurable. 


Switching the Direction of a Controller’s Buttons

The Controller Settings window also allows the swap arrow to switch which buttons control each direction of the motor.

file-84Gx74os6z.png


Deleting a Controller

A Controller can also be deleted by selecting the “Delete” option at the bottom of the window.

file-KdtBR9FSlH.png