Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Network table problems (http://www.chiefdelphi.com/forums/showthread.php?t=116744)

Sherrardtr 07-05-2013 20:12

Network table problems
 
Hello everyone,
I have been trying to develop an off board image processing program for my team. The actual image processing works fine but when I try to send the data back to the robot, it gets a little sketchy. On the laptop side I am putting number onto the network table with the following( in a nutshell ):


NetworkTable table;
Table.getTable("key").putnumber("X" , -1);

Everytime I try to put the number to the table, which is when it sees a square, the video feed freezes. However when I remove the square from the view of the camera, e feed resumes.

I guess what I am asking is, what would be the proper way to transmit data from the laptop (driverstation) to the robot?
Thank you!

otherguy 08-05-2013 12:08

Re: Network table problems
 
Can you provide a little more info on when you're calling:
Code:

Table.getTable("key").putnumber("X" , -1);
And a description of the hardware setup might help too.

Just a guess without knowing a little more about your situation...
When a target is in the view of your camera, are you flooding the dashboard/robot with data? The video freezing on the dashboard is indicative of something between the camera and dashboard getting real busy. Again, just a guess.

joelg236 08-05-2013 12:58

Re: Network table problems
 
Quote:

Originally Posted by otherguy (Post 1273321)
The video freezing on the dashboard is indicative of something between the camera and dashboard getting real busy. Again, just a guess.

If your dashboard is a simple display of the stream from the camera, this would be it.

If your dashboard is a display of your "processed" image, then it could be a problem in how you are sending your data. I don't have experience with sending images, so maybe someone else can fill that in for me.


All times are GMT -5. The time now is 10:01.

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