View Single Post
  #14   Spotlight this post!  
Unread 16-06-2012, 08:58
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: Toggle between two cameras

I'm going to run with the assumption that you've got a second camera running in an additional "Camera" tab.

First, you'll need to pass a boolean from a joystick or some other input to the DS. This is done via "High Priority User Data".

Then, on the block diagram, right click on each of your "Viewer" icons, then navigate to Create>>Property Node>>Value. You'll have to change each of these property nodes to write by right clicking on them.

Take the boolean you received and create a case structure. In the true case, wire the "Camera Image" enum to the first viewer property node. In the false case, wire the remaining enum to the second viewer property node.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	27
Size:	6.7 KB
ID:	12831  
Reply With Quote