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.