View Single Post
  #1   Spotlight this post!  
Unread 13-02-2013, 01:03
Mr.circlemonger Mr.circlemonger is offline
Registered User
FRC #4110
 
Join Date: Feb 2013
Location: United States
Posts: 6
Mr.circlemonger is an unknown quantity at this point
Shooter Lifting Code

Hello, I qould like an inquiry on whether this routine will work. For lifting and adjusting the angle of our shooter, we have 5 touch sensors lined up at different angles of the lift, and this program is supposed to get the distance sensed by the vision camera(it's a placeholder for now), and compare the desired level with the level the lift is currently at, telling the motor to move up or down depending on the direction needed. Does my current program look alright? (it's in teleop.vi)

Also, I would like to know how to make the routine run only once when you press the button on the joystick, instead of constantly running while the button is held down, as it would work atm.



Thanks!
Attached Thumbnails
Click image for larger version

Name:	LiftCode.png
Views:	90
Size:	62.9 KB
ID:	13963  
Reply With Quote