Go to Post "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world." - Albert Einstein - Edward Debler [more]
Home
Go Back   Chief Delphi > Technical > Programming
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
  #19   Spotlight this post!  
Unread 12-01-2016, 16:49
Ti-Gars's Avatar
Ti-Gars Ti-Gars is offline
Wizzard
FRC #3360 (Hyperion)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Sherbrooke, QC, Canada
Posts: 6
Ti-Gars is on a distinguished road
Re: We are going to Want a GRIP fourm

Quote:
Originally Posted by nightpool View Post
Can you read other types of NetworkTable values, such as from the Smart Dashboard or ones inserted manually in the NetworkTable Viewer? Sounds like your robot code isn't connecting to the same network/NT instance that your laptop is on.
I am connected to my robot while running my code. When my robot boot, I see in my Riolog :
Code:
NT: server: client CONNECTED: 10.33.60.25 port 56974
But I am not able to get my values. I am using this line of code to get them :
Code:
table = NetworkTable.getTable("/GRIP/myContoursReport");
double[] defaultValue = new double[0];
double[] areas = table.getNumberArray("area", defaultValue);
I also tried to see if he find my "key", but it doesn't see it.
Code:
System.out.println(table.containsKey("area");
We are guessing that our problem is that our robot is not able to connect to our Network Table who's on our laptop. Still, we don't know how to do it.
 


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 07:14.

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