Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Roborealm values cannot be accessed by our code (http://www.chiefdelphi.com/forums/showthread.php?t=143327)

jennykittyli 02-06-2016 04:44 PM

Roborealm values cannot be accessed by our code
 
1 Attachment(s)
Hi all,

As Week 5 comes around, the stress is on to finish all of our code and our biggest hurdle right now is CAMERA CODE. We've tried some methods found on ChiefDelphi's threads and none of them seem to work.

The methods we have tried are:

- Took out the // in the prefix of the Network_Tables Module.
- Changed our Hostname to roborio-2265-FRC.local


Our current code is:

NetworkTable table;
table= NetworkTable.getTable("SmartDashboard");

public void teleopPeriodic() {
Scheduler.getInstance().run();

double height= table.getNumber("IMAGE_HEIGHT", 10.0);
table.putNumber("IMAGE_HEIGHT", height);
SmartDashboard.putNumber("HEIGHT", height);
table.containsKey("IMAGE_HEIGHT");
}

The picture attached below is the modules we used to isolate our goal and the variables we tried sending to NetworkTables. The variables can be seen on Network Tables Viewer but our CODE can't access the variables.

I suspect that this is a small problem that we just haven't caught in quite a while. Any help is much appreciated and feel free to contact me at lij9@bxscience.edu

Good luck to everyone!

-Jenny

faraz5557 02-20-2016 11:57 PM

Re: Roborealm values cannot be accessed by our code
 
Have you gotten any answers? My team is having the same problems.

An Outlier 02-21-2016 10:53 AM

Re: Roborealm values cannot be accessed by our code
 
MY Team is ALSO having the same problems, only with a Raspberry PI.

We can see the NetworkTables in the LabView dashboard, but according to the code on our RoboRio, our "GRIP" Table does not exist.

We also tried sending the values to a Sub-Table, and just writing the variables in the SmartDashboard table.

No matter where we put them, the LabView dashboard COULD see them, and our RoboRio code COULD NOT.

Any help would be fantastic, our team is completely stumped.


All times are GMT -5. The time now is 08:58 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi