Thread: Joysticks
View Single Post
  #11   Spotlight this post!  
Unread 30-05-2012, 11:49
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Joysticks

No.

Left stick shows up as axis 1 and 2 (X and Y respectively), right stick shows up as axis 3 and 4 (x and y again), and D-pad shows up as axis 5 and 6 (it's binary, so it will be either 0, +1, or -1 for each axis).

All of the buttons are numbered on the joystick, and correspond to the same number in software. L3 and R3 (pressing the joysticks) are buttons 11 and 12, they are not labeled on the joystick. I attached a pair of LabVIEW controls for the mapping of the buttons and axis, if you cast the LabVIEW Joystick Get clusters to these two controls, it will name all of the buttons correctly.

The F310 and 360 have identical button/axis mappings. See attached 360 files. Please note that L2 and R2 (buttons 9 and 10) are actually unused, I have some code that gets a digital output from the analog triggers (axis 3 is the raw trigger data fro L2 and R2).

(I had to zip them as CD does not allow uploading of .ctl files).
Attached Files
File Type: zip HMI_JS_Controls.zip (13.5 KB, 15 views)
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote