Thread: PLZ Help
View Single Post
  #2   Spotlight this post!  
Unread 02-20-2016, 10:14 AM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,999
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PLZ Help

Quote:
Originally Posted by CyberTeam5713 View Post
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) {
Reply With Quote