Go to Post I have to remind myself you guys are from Kansas when I hear the country music...I'm not even sure any Texas Teams do that ;) - JohnSchneider [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-01-2015, 20:35
mdrouillard mdrouillard is offline
Registered User
FRC #0772
 
Join Date: May 2011
Location: Canada
Posts: 29
mdrouillard is an unknown quantity at this point
How to use Virtual DIO Analog IO on DS

Hello Folks,
I have been searching the interwebs, and forums and I just can't seem to find the answer to the following. In the new 2015 Driver station the IO tab which was on the 2014 Driver Station (DS) presumably would allow a team to set a virtual Digital IO and Virtual Analog IO and have the robot via a Java/C++ or Labview function call read these values from the driver station. I could not figure out how to read these values in the Robot. Now the new 2015 DS does not have this IO tab, but it does by default launch a dashboard that teases the same idea on the custom tab.

I understand how to get a custom dashboard, or smartdashboard to to READ values from the Robot, but we can not seem to figure out how to get the robot to pull or be sent these values from the dashboard/custom dashboard. The closest I can get is a smartchooser function for a radio button. Anyway any hints? I am sure it is in plain view but we can't seem to find it.

We are using JAVA this year, but even an example in C++ would likely be ok since the LIBs are very close....

Many thanks.

Michael

Last edited by mdrouillard : 13-01-2015 at 20:36. Reason: additional info on language.
  #2   Spotlight this post!  
Unread 13-01-2015, 20:36
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: How to use Virtual DIO Analog IO on DS

What programming language?
  #3   Spotlight this post!  
Unread 13-01-2015, 21:10
mdrouillard mdrouillard is offline
Registered User
FRC #0772
 
Join Date: May 2011
Location: Canada
Posts: 29
mdrouillard is an unknown quantity at this point
Re: How to use Virtual DIO Analog IO on DS

We are using JAVA.
  #4   Spotlight this post!  
Unread 13-01-2015, 21:22
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: How to use Virtual DIO Analog IO on DS

SmartDashboard.getX (getNumber, getBoolean, getString) are probably what you're looking for (it sounds like you already know about SendableChooser).

If you're using the default LabVIEW dashboard check out this doc: http://wpilib.screenstepslive.com/s/...th-c-java-code

If you're using the SmartDashboard, you'll need to do a put of the key at some point (such as robotInit) to get it into the table. Then you can edit the value in the box on the SmartDashboard and do a get on the robot side (likely repeatedly in disabledPeriodic or teleopPeriodic).

Make sure to specify a default value when using the gets so your program still works if the SD is not connected.
  #5   Spotlight this post!  
Unread 13-01-2015, 21:29
mdrouillard mdrouillard is offline
Registered User
FRC #0772
 
Join Date: May 2011
Location: Canada
Posts: 29
mdrouillard is an unknown quantity at this point
Re: How to use Virtual DIO Analog IO on DS

Many thanks, As I said, I figured the answer was in plain site. but my google skills failed me this time..

Again, many thanks. Good luck everyone. We are pumped..

77Who? 772!
Closed Thread


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 00:43.

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