View Single Post
  #5   Spotlight this post!  
Unread 05-02-2012, 01:06
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

Click image for larger version

Name:	labview.png
Views:	20
Size:	13.5 KB
ID:	11723

This is probably more along the lines of what you were looking for.

Obviously this isn't tested, but I think it will work.

Code in words: Command the motor to the value found on Axis 1 (direction & magnitude) if either of the following conditions are met:
  • Commanded to the right and the right switch isn't pressed
  • Commanded to the left and the left switch isn't pressed

Again, I don't know which switches correlate to which directions on your stick, so the code may not work perfectly, TEST TEST TEST
__________________
http://team2168.org
Reply With Quote