2 joysticks, 2 sides

So what I’m trying to do is have the left joystick control the left motor, and the right joystick control the right motor. This means that the motors would move forwards and backwards, left and right, completely separately. I’m new to coding so I’m not exactly sure on how I’m supposed to code that. All help will be greatly appreciated :slight_smile:

The control scheme you’re describing is called “tank drive”.

If you’re using VEXcode IQ blocks, you can set that up without writing any code. Configure a drivetrain and a controller, then in the controller setup, click/tap a joystick repeatedly until it looks like this:

1 Like

Thank you, but I’m using text. Thanks so much for the advice :slight_smile:

The general approach is to set the left motor power to the value of the left joystick, and the right motor power to the value of the right joystick.

If you let us know what programming environment you’re using, and post any code you’ve come up with so far if applicable, then we can provide you with more specific help.

RobotC Text???

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.