View Single Post
  #32   Spotlight this post!  
Unread 16-03-2016, 18:23
apm4242 apm4242 is offline
Registered User
FRC #4242
 
Join Date: Jan 2013
Location: United States
Posts: 82
apm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud of
Re: Lights to help aim

See attached for LabView screen shots. A few notes -

Wiring the blue relay values to the selector was tricky. If someone knows a better way, feel free to correct this but here's what I did - right click on Relay Set and create a constant. Sever the connection between the new constant and the Relay Set. Connect the new constant to the Select and then wire the Select output to the Relay Set. Now the Select will accept and return blue values.

Selecting "On" and "Off" as the relay values did not work - the flashlight just quickly flashed and stayed off. We had to set it to "Forward" and "Off".

The Relay vi's are in the WPI Robotics Library > Actuators > Relay area.

The feedback nodes are finicky. Sometimes they don't turn green when wired to a Boolean on the first try and the arrows may need to be switched (right click). The button toggle code is straight out of Team 358's guide. I highly recommend it. It's the best.
Attached Thumbnails
Click image for larger version

Name:	Flashlight_Relay_Example.jpg
Views:	83
Size:	125.9 KB
ID:	20375  
Reply With Quote