Go to Post We fail to present a coherent picture of what we are if we aren't vigilant about our self-image. - Alan Anderson [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-05-2013, 20:12
Sherrardtr Sherrardtr is offline
Registered User
FRC #2172
 
Join Date: May 2013
Location: Lakewood
Posts: 1
Sherrardtr is an unknown quantity at this point
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!
Reply With Quote
  #2   Spotlight this post!  
Unread 08-05-2013, 12:08
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 430
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
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.
__________________
http://team2168.org
Reply With Quote
  #3   Spotlight this post!  
Unread 08-05-2013, 12:58
joelg236 joelg236 is online now
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Network table problems

Quote:
Originally Posted by otherguy View Post
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 opinions are my own.
Reply With Quote
Reply


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 22:32.

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