View Single Post
  #17   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.