Vexcode: Setting Motor Velocity with Joystick Position

Use the value of the joystick position to set the motor velocity in Vexcode Blocks

A question came up recently about how do you use the controller to manage the motors (or drivetrain).

The key is that the range of the joysticks is exactly the same as the range of the motor velocity input:  -100 to +100.  When we set the motor velocity to 100 (%) – we’re setting it to full speed, and that is the same as the joystick pushed to the full extent.

Here’s a picture of that in Blocks:

Use joystick position to set velocity in Vexcode Blocks