Go to Post For all of you thinking three alliances... how big of a pain would it be to have three different bumper colors? - Jon Stratis [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-03-2012, 20:18
questionsigotem questionsigotem is offline
Registered User
FRC #1647
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2009
Location: New Jersey
Posts: 14
questionsigotem is an unknown quantity at this point
Java to Labview

I've never worked with labview before. What we are trying to do is, check to see if a button is pressed to drive on its own. (we created a new dashboard) Since we are using java is do we need to add something in our code to transfer the data to the driverstation and then send it back? Thanks for your help.
Reply With Quote
  #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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:48.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi