View Single Post
  #3   Spotlight this post!  
Unread 18-02-2012, 16:53
Rogue Leader Rogue Leader is offline
Registered User
FRC #0696 (Circuit Breakers)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Glendale, CA
Posts: 78
Rogue Leader is an unknown quantity at this point
Re: How to program the Xbox 360 Wired Controller...

A way you could tell what buttons are which in LabVIEW is to open the joystick and get button and axis information using the "Open" and "Get" VI's in the WPI robotics library. You can connect an "unbundle by name" block from the cluster palette to get the button/axis info after you get the info from "Get" VI. Then you can hook up some booleans to the info to see button info. And as for joystick info, you can create a boolean light, then on the block diagram, right click, "create", "property node", "position", then "left", and "top". Right click those nodes, and click "change to write" so the joysticks can control their position on the front panel (you might need a scalar to make the joysticks less sensitive). Although, your right joystick should be able to get the motor to work... (Hope this helped).
Attached Thumbnails
Click image for larger version

Name:	LabVIEW Tutorial 2 copy.jpg
Views:	169
Size:	86.3 KB
ID:	11981  
Reply With Quote