View Single Post
  #12   Spotlight this post!  
Unread 13-02-2013, 18:22
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: Shooter Lifting Code

Try this code. The VI is 8.6 but 2012 will open it.

You could just drop the VI on to your block diagram and wire up the DIO, Distance, Joystick button and the Motor Speed.

You are still at risk of having the system getting out of sync with the levels especially if the robot starts in between the positions and returns a current level of zero (0). You might have to create manual override if the shooter gets out of sync due to the dead zones in between limit switches or out side of the limit switches.

The init on the motor speed feedback should be 0.2
Attached Thumbnails
Click image for larger version

Name:	Shooter.png
Views:	26
Size:	27.5 KB
ID:	13993  
Attached Files
File Type: vi Shooter.vi (10.8 KB, 2 views)
__________________
Omar

Last edited by Omar : 13-02-2013 at 18:27.
Reply With Quote