Thread: Java to Labview
View Single Post
  #2   Spotlight this post!  
Unread 08-03-2012, 10:51
Brian Selle's Avatar
Brian Selle Brian Selle is offline
Mentor
FRC #3310 (Black Hawk Robotics)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 162
Brian Selle has a spectacular aura aboutBrian Selle has a spectacular aura aboutBrian Selle has a spectacular aura about
Re: Java to Labview

If you want your robot to respond to a button pushed on the dashboard... this is easy to do with the SmartDashboard in Java. For the Command based robot template put the code below in OI.java and a button will appear on the SmartDashboard.

InternalButton cameraLight = new InternalButton();
cameraLight.whenReleased(new CameraLightToggle());
SmartDashboard.putData("Camera Light Toggle", cameraLight);
Reply With Quote