View Single Post
  #1   Spotlight this post!  
Unread 09-01-2013, 09:32
Stonemotmot Stonemotmot is offline
Registered User
FRC #0486
 
Join Date: Sep 2011
Location: United States, Pa
Posts: 53
Stonemotmot is an unknown quantity at this point
Error on using network tables from smartdashboard.

Hello, I am trying to send some simple double values from the smart dashboard to the robot the problem is the data does not appear to be recieved and I get a flood of messages from the network tables such as the ones below.
Quote:
connection state: GOT_CONNECTION_FROM_CLIENT
edu.wpi.first.wpilibj.networktables2.server.Server ConnectionAdapter@14f entered
connection state: SERVER_ERROR: class
edu.wpi.first.wpilibj.networktables2.connection.Ba dMessageException: Unknown Network Table Message Type: 12
Close: edu.wpi.first.wpilibj.networktables2.server.Server ConnectionAdapter@14f
The Code I use is as follows
Code:
SmartDashboard Code
------------------------------
public static NetworkTable table;
public int network=0;
public WPIImage processImage (WPIColorImage image)
{
    if (network==0)
    {
     NetworkTable.setIPaddress("10.4.86.2");
     table = NetworkTable.getTable("camera");
     network=1
      }
      table.putDouble("AREA", 2);

}

Robot Code
------------------------------
public static NetworkTable cameraTable = NetworkTable.getTable("camera");

function()
{
System.out.println(cameraTable.getNumber("AREA",-1);
}
The above code displays the previous error and -1(the default output)
Any help is much appreciated.

Last edited by Stonemotmot : 09-01-2013 at 11:03.
Reply With Quote