Thread: X and Y axis
View Single Post
  #7   Spotlight this post!  
Unread 15-02-2012, 21:44
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: X and Y axis

As mentioned by the people above me, you're going to have to tell us what you mean by "activating the X and Y Axis." Although you're being very vague, it sounds like you're talking about joysticks. If so, go to the WPI Robotics Library and go to robot drive, then joystick, then "Open Joystick." That will initialize the joystick, essentially turning it on.

Next, go to the joystick palette again, and get the "Get" vi. This allows you to get button and axis information for you to use. Once you've done that, go to the cluster palette and get the "unbundle by name" block and plug that in to the joystick. Once you do that, you can get button and axis information. Click the unbundler and change the shown items to "X Axis" and "Y Axis." Once you get these, you can do whatever you like to utilize the joystick. Please note that if you are using two joysticks, you will need to do this process twice. And if you're using a tank drive, you need to use the Y Axis to drive the robot.

I hope that helped, and if you have any further questions feel free to ask!
Attached Thumbnails
Click image for larger version

Name:	LabVIEW Tutorial copy.jpg
Views:	3
Size:	77.6 KB
ID:	11932  

Last edited by Rogue Leader : 16-02-2012 at 21:16.