Go to Post The programmers will kill you if you want that done on the robot!!! - cbeavers6790 [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:28.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi