Thread: XBox controller
View Single Post
  #1   Spotlight this post!  
Unread 11-12-2012, 10:59
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Re: XBox controller

Quote:
Originally Posted by Zuelu562 View Post
Toa, our reasoning for using the floats was a double whammy type deal; we added a small deadband to the controller by keeping an eye on the values. We were aware of the issue that the robot could potentially move without a human interacting with the controller due to the minuscule difference between 0 (dead stop) and .25 (moving) on the xbox controllers. This also solved the issue with GetRawAxis() freaking out in the main loop.
Funny, the controller I used never had a deadband issue.

Quote:
Originally Posted by ekapalka View Post
So does that mean we don't vave to use
Code:
		leftStick = new Joystick(1);			
		rightStick = new Joystick(2);
or that in addition to the code you suggested? Thanks for your reply! I really appreciate it!
Oh, you will still need to do all the code you had before, I just wrote up the portion that you need to add/replace.
Reply With Quote