Quote:
Originally Posted by CyberTeam5713
How do I program a Xbox Controller so that the left analog drives foward/backward and the right analog turns the robot left/right
|
Code:
/**
* 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) {