View Single Post
  #1   Spotlight this post!  
Unread 15-01-2013, 11:51
Itamar's Avatar
Itamar Itamar is offline
Registered User
FRC #1943 (NeatTeam) & FRC #4590 (GreenBlitz)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Israel
Posts: 83
Itamar is an unknown quantity at this point
Problems forming NetworkTable between Robot and SmartDashboard

Hello!

We are currently trying to form a connection between the robot and the Smart Dashboard. Here is part of the extension code we have written in Java:

Code:
if (table== null)
{  
            NetworkTable.setTeam(1943);
            NetworkTable.setServerMode();
            try {
                NetworkTable.initialize();
            } catch (IOException ex) {
                Logger.getLogger(TutorialLabel.class.getName()).log(Level.SEVERE, null, ex);
            }
            
            table = NetworkTable.getTable("RoboRealm");
}
And here is the robot code we have written in C++:

Code:
NetworkTable::SetTeam(1943);
NetworkTable::SetIPAddress("10.19.43.5");
NetworkTable::Initialize();
		
roborealmNetTable = NetworkTable::GetTable("RoboRealm");
The Java code runs okay, but the C++ doesn't. When debugging it, we noticed that the code freezes after we call the "NetworkTable::Initialize()" function. What can cause this problem? Can you spot anything wrong with our code?

Thanks!