View Single Post
  #1   Spotlight this post!  
Unread 26-01-2016, 15:49
moomoomoo309 moomoomoo309 is offline
Registered User
FRC #0224
 
Join Date: Jan 2016
Location: Piscataway
Posts: 9
moomoomoo309 is an unknown quantity at this point
Data from GRIP not available in Java Code

I've been using a roboRIO and trying to get a Contour Report from GRIP into my code. GRIP works well enough; data comes from it and into the Network Table viewer (I can see all of the data in the Network Table Viewer!). Once I attempt to get the data from the NetworkTable into my code, it does not work.

What I've tried (in teleopPeriodic) given table=NetworkTable.getTable("GRIP/myCountoursReport")):
  • Printing out table.getKeys() (which is empty)
  • Checking if a given index (I.E area) exists (table.containsKey("area") was false)
  • Publishing a different number into the GRIP table and trying to get that (put the framerate into the table, NetworkTable.getTable("GRIP").getNumber("myNumber" ,Double.NaN) returns NaN)

Do you have any advice for how I can fix this problem, or any other diagnostic steps you may need?
Reply With Quote