Log in

View Full Version : PLZ Help


CyberTeam5713
20-02-2016, 01:25
How do I program a Xbox Controller so that the left analog drives foward/backward and the right analog turns the robot left/right

Ether
20-02-2016, 10:14
How do I program a Xbox Controller so that the left analog drives foward/backward and the right analog turns the robot left/right

/**
* Arcade drive implements single stick driving. This function lets you
* directly provide joystick values from any source.
*$
* @param moveValue The value to use for forwards/backwards
* @param rotateValue The value to use for the rotate right/left
* @param squaredInputs If set, decreases the sensitivity at low speeds
*/
public void arcadeDrive(double moveValue, double rotateValue, boolean squaredInputs) {