View Single Post
  #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