View Single Post
  #2   Spotlight this post!  
Unread 24-03-2016, 22:14
Jeringo Jeringo is offline
Registered User
FRC #4749
 
Join Date: Jan 2016
Location: Atlanta
Posts: 10
Jeringo is an unknown quantity at this point
Re: Can't get data from Network tables

right now i have this

Code:
public NetworkTable table = NetworkTable.getTable("Grip/TowerTarget");
Width = table.getNumber("width", 0.0);
SmartDashboard.putNumber("width :", width);
should i use this instead?

Code:
public NetworkTable table = NetworkTable.getTable("Grip/TowerTarget");
Width = table.getNumberArray("width", 0.0);
SmartDashboard.putNumber("width :", width[0]);