View Single Post
  #3   Spotlight this post!  
Unread 04-02-2012, 23:25
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 430
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Help with Lazy Susan Shooter on Joystick

You've got the right idea.

I'm not familiar with your hardware setup, but something like the following could probably get the job done.
Click image for larger version

Name:	labview.png
Views:	18
Size:	20.8 KB
ID:	11720

The Set Output VIs (boxed in red) need to be supplied with a speed. Right click on the input node and click create constant (or something to that effect - its been a while since I've used labview). This will make an input variable which you can hard code to a value from 1.0 to -1.0. Start with a low value 0.2 to -0.2 and see how fast that makes the motors rotate. Also, before you fully implement this, be sure to verify you're turning in the correct direction (toward the limit switch that should stop drive motion). If you go in the wrong direction you'll keep going and stall the drive which could cause damage depending on your setup.

Inside the nested false block make sure you have a Set Output VI which stops the motor. Same for the case where the joystick inputs are within .1 to -.1, motor should be stopped by sending the Set Output VI "0.0"

Note: I don't know if the "Shooter Limit Right" and" Shooter Limit Left" variables are in the correct box (may need to be switched depending on how your joystick makes the motors turn).

Goodluck, you're on the right path.
__________________
http://team2168.org
Reply With Quote