View Single Post
  #5   Spotlight this post!  
Unread 03-02-2013, 23:11
l0stboy l0stboy is offline
Registered User
FRC #4064 (InZombiacs)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: United States
Posts: 22
l0stboy is an unknown quantity at this point
Re: Can't figure out Roborealm. Need distance variable

Ah, I get it now. So would my code look like this to get the distance value out of RoboRealm and into the cRIO?

NetworkTable server = NetworkTable.getTable("SmartDashboard");
try
{
System.out.println(server.getNumber("Distance", 0.0));
}
catch (TableKeyNotDefinedException ex)
{
}
__________________

Pedro
Ocala InZombiacs
Reply With Quote