View Single Post
  #4   Spotlight this post!  
Unread 11-02-2007, 14:30
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: Last Minute Programming Failures

Quote:
Originally Posted by robobrain0101 View Post
even though we are using a XBOX360 controller?
Yes. All the USB Chicklet does is map your controller's axes and buttons to the appropriate variables (p1_x, p1_y, p1_wheel, p1_aux, p1_sw_top, etc.).

Only time it gets odd is if you've picked a configuration setting such that you're using more than 4 buttons, in which case you'll need to write code to check if the most significant bits of p1_wheel and/or p1_aux are set, since this is how the chicklet encodes the higher-numbered buttons.