Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   PLZ Help (http://www.chiefdelphi.com/forums/showthread.php?t=144198)

CyberTeam5713 02-20-2016 01:25 AM

PLZ Help
 
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 02-20-2016 10:14 AM

Re: PLZ Help
 
Quote:

Originally Posted by CyberTeam5713 (Post 1543083)
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) {



All times are GMT -5. The time now is 08:58 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi