Thread: XBox controller
View Single Post
  #9   Spotlight this post!  
Unread 14-12-2012, 21:34
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: XBox controller

Quote:
Originally Posted by ekapalka View Post
.
THe code provided by Toa works, but I had a few questions about how exactly it works. It only references
Code:
leftStick->GetRawAxis(1), leftStick->GetRawAxis(2)
so why do I even need
Code:
rightStick = new Joystick(2);
?
You don't

Quote:
Originally Posted by ekapalka View Post
Also, why is it myRobot->Drive() and not robotDriver.ArcadeDrive() or myRobot->ArcadeDrive()? Any help would be great! Once again, thanks for all your help!
There are several different methods provided by RobotDrive, including ArcadeDrive and Drive. They are described in the "WPI Robotics Library User’s Guide". You should pick the one that does what you want, or experiment and try them all.
Reply With Quote