Log in

View Full Version : Drivetrain controlled by xbox controller?


SoftwareRachel
13-07-2014, 13:08
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
I would suggest arcade drive.

SoftwareRachel
13-07-2014, 13:21
I would suggest arcade drive.

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

notmattlythgoe
13-07-2014, 13:34
Would public void arcadeDrive(double moveValue, double rotateValue) work?

Absolutely.