View Single Post
  #1   Spotlight this post!  
Unread 01-26-2016, 02:34 PM
VrewDaive VrewDaive is offline
Registered User
FRC #4284
 
Join Date: Sep 2015
Location: Cincinnati
Posts: 21
VrewDaive is an unknown quantity at this point
Xbox Controller with mecanum drive

Hello, I'm a first year FRC programmer and was curious on how to use the Xbox 360 controller as both joysticks for the
Code:
myDrive.mecanumDrive_Polar(moveStick.getY(),moveStick.getX() , rotateStick.getTwist());
I don't know how to designate the certain sticks of the controller to either moveStick or Rotate stick and also am confused on how to assign them in the declaration
Code:
myDrive =  new RobotDrive(0,1,2,3);
    	moveStick = new Joystick(1);
    	rotateStick = new Joystick(2);
Any help appreciated; Ive already looked over the other chief delphi post over this subject but am still lost. Thanks!!
Reply With Quote