Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Drivetrain controlled by xbox controller? (http://www.chiefdelphi.com/forums/showthread.php?t=130037)

SoftwareRachel 13-07-2014 13:08

Drivetrain controlled by xbox controller?
 
Hello,
I was wondering which RobotDrive would I use if I wanted to control the robot in a way such that:
The left stick on the xbox controller would give y-values that would control the forward and backward movement of the robot

And the right stick on the controller would give x-values that would control the rotation of the robot (for example if the right stick was pushed to the right, the robot would rotate to the right)

It's probably really simple, but I've been stuck for a while

Thanks in advance! :]

notmattlythgoe 13-07-2014 13:17

Re: Drivetrain controlled by xbox controller?
 
I would suggest arcade drive.

SoftwareRachel 13-07-2014 13:21

Re: Drivetrain controlled by xbox controller?
 
Quote:

Originally Posted by notmattlythgoe (Post 1392950)
I would suggest arcade drive.

Would public void arcadeDrive(double moveValue, double rotateValue) work?

notmattlythgoe 13-07-2014 13:34

Re: Drivetrain controlled by xbox controller?
 
Quote:

Originally Posted by SoftwareRachel (Post 1392952)
Would public void arcadeDrive(double moveValue, double rotateValue) work?

Absolutely.


All times are GMT -5. The time now is 22:37.

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