Go to Post There is no rule that specifically states that you must obey the law of physics during the competition. This may be an oversight. - bmather [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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
  #10   Spotlight this post!  
Unread 18-02-2016, 17:06
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Re: Network tables has already been initialized

Quote:
Originally Posted by StaleyRobotics View Post
This is some basic code we have been trying. We are still getting the same error. Any time we try to access the NetworkTables class we receive the error.

Code:
NetworkTable server;
	
	public Vision() {
		server = NetworkTable.getTable("SmartDashboard");
	}
	
	public void printImageCount() {
		try {
			double imageCount = server.getNumber("IMAGE_COUNT", 0.0);
			
			System.out.println(imageCount);
		}
		catch(TableKeyNotDefinedException exp) {
		}
	}
Is this in your robot program? If so, why are you getting the SmartDashboard table manually and not using the SmartDashboard.* functions?
Reply With Quote
 


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 22:31.

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