View Single Post
  #2   Spotlight this post!  
Unread 23-02-2016, 14:05
fireXtract fireXtract is offline
MegaHertz_Lux
FRC #2847 (Mega Hertz)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: fmt
Posts: 42
fireXtract is an unknown quantity at this point
Re: Need help with Network Tables

For my usage I use:
Code:
	public NetworkTable table = NetworkTable.getTable("locationOfItem");
			actualVariable = table.getNumberArray("arrayItem", defaultValue);
			SmartDashboard.putNumber("displayName", actualVariable[0]);
This uses arrays, but you could use it with just numbers by using different getNumber with table.
Reply With Quote