Thread: Network Tables
View Single Post
  #1   Spotlight this post!  
Unread 27-02-2013, 15:47
twiggzee twiggzee is offline
Registered User
FRC #3502 (Octo-(PI)-Rates)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2011
Location: Tallahassee, FL
Posts: 55
twiggzee is an unknown quantity at this point
Re: Network Tables

I am having the same problem. I started with Daisy's vision code from last year and have modified it to fit our needs. The following line

Code:
Robot.getTable().putNumber("azimuth", azimuth);
prints a value to the SmartDashboard but I cannot retrieve the value from the robot side code:

Code:
SmartDashboard.getNumber("azimuth");
but i get an error saying that there is no such key. I played with this alot until I gave up and tried the NetworkTables method here but i can't seem to get it to work either.

With the following lines, I lose camera feed on the SmartDashboard:
Code:
NetworkTable.setClientMode();
NetworkTable.setIPAddress("10.35.2.2");
NetworkTable table = NetworkTable.getTable("visiondata");
.
.
.
table.putNumber("azimuth", azimuth);

When I comment out the first 2 of those 3, I get my camera stream back but still no data output.

Any ideas??
__________________
Wendy
Team 3502
Reply With Quote