Go to Post I would rather Andy Baker be at champs than Will.i.am. - Grim Tuesday [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 16-02-2013, 19:55
JaredB JaredB is offline
Registered User
FRC #4542
 
Join Date: Feb 2013
Location: Woodinville
Posts: 1
JaredB is an unknown quantity at this point
Communicating with RoboRealm

Hi,

I found a few threads on communicating with RoboRealm but reading this: http://www.roborealm.com/help/Network_Tables.php
didn't clear too much up. I can upload the variables from RoboRealm, but I can't figure out how to access them from the CRio. I would greatly appreciate it if somebody could post some code for this(Windriver C++), or just point me in the right direction.

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2013, 00:11
xraymypanda's Avatar
xraymypanda xraymypanda is offline
Cowboy programmer
AKA: Chris M
FRC #0599 (RoboDox)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Granada Hills,CA
Posts: 82
xraymypanda has a spectacular aura aboutxraymypanda has a spectacular aura about
Re: Communicating with RoboRealm

I literally just walked away from my code. You basically have to use the smart Dashboard getData function and the string name of the variable to access it in your code.
__________________

2011: Head Scout
2012: (figure)Head Programmer
2013: Head Programmer, Chief Strategist, Outreach Executive, and Driver
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2013, 13:48
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Communicating with RoboRealm

RoboRealm can write values to NetworkTables. There is an example on this web page: http://wpilib.screenstepslive.com/s/...client-pc-side
that demonstrates writing a robot-side and laptop-side NetworkTables program to communicate data. If you assume that RoboRealm is the laptop-side program you can use the robot-side example here.

There's some information about using RoboRealm at the bottom of the web page.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2013, 14:09
RoboRealm RoboRealm is offline
Registered User
FRC #0443
 
Join Date: Nov 2011
Location: United States
Posts: 34
RoboRealm is a jewel in the roughRoboRealm is a jewel in the roughRoboRealm is a jewel in the roughRoboRealm is a jewel in the rough
Re: Communicating with RoboRealm

Jared,

You may also find that using the TableViewer application that comes as part of the FRC install is useful in debugging these types of issues. If you have RR running correctly, the TableViewer application should show the variable also. Its a good way to ensure that things are setup correctly with code that is know to work, then you can jump into getting the value on the CRio.

Also, don't forget the namespace when naming it in RoboRealm. Ie. your variable should look like

/SmartDashboard/Distance

and this should be visible in both the TableViewer and SmartDashBoard.

STeven.
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 02:56.

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