Go to Post Woah, boulders fired. - FrisbeeFunTime [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 15-02-2014, 19:16
EmmettNervend EmmettNervend is offline
Registered User
FRC #4296 (Trident Robotics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Gurnee, Illinois
Posts: 1
EmmettNervend is an unknown quantity at this point
Getting data from RoboRealm into C++

We're trying to create a targeting program for this year's competition using RoboRealm. We have been able to create a .robo that accurately reads distance from a hot goal. It includes the Network_Tables layer and we have told it to send our value for distance to the SmartDashboard according to this guide:
http://www.roborealm.com/help/Network_Tables.php
We didn't have any success with this tutorial or any of the others we found.

Have any of you been able to get values from RoboRealm into C++ code? Are there any good tutorials out there?
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2014, 19:31
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: Getting data from RoboRealm into C++

As soon as RoboRealm starts putting values on the Network Tables, then you should see them on the SmartDashboard. Once it's displayed on the SmartDashboard, all you have to do is use this line of code:

Code:
SmartDashboard::GetNumber("YOUR_VARIABLE_NAME");
So in your case, it would probably be something like:

Code:
double distance = SmartDashboard::GetNumber("DISTANCE");
Reply With Quote
  #3   Spotlight this post!  
Unread 23-02-2014, 08:56
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
This is for java but should be easy to translate. http://wpilib.screenstepslive.com/s/...with-roborealm
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
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:45.

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