Go to Post There is beauty in pure simplicity. - artdutra04 [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2016, 16:44
jennykittyli jennykittyli is offline
Registered User
FRC #2265
 
Join Date: Feb 2016
Location: USA
Posts: 1
jennykittyli is an unknown quantity at this point
Roborealm values cannot be accessed by our code

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
Attached Thumbnails
Click image for larger version

Name:	Capture2.PNG
Views:	103
Size:	88.4 KB
ID:	20000  
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2016, 23:57
faraz5557's Avatar
faraz5557 faraz5557 is offline
BB-R8ER
AKA: Faraz Masroor
FRC #5557 (BB R8ERS)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Miami, FL.
Posts: 13
faraz5557 is an unknown quantity at this point
Re: Roborealm values cannot be accessed by our code

Have you gotten any answers? My team is having the same problems.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2016, 10:53
An Outlier An Outlier is online now
Registered User
AKA: Julian Bernard
FRC #5687 (The Outliers)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Milky Way Galexy
Posts: 31
An Outlier is an unknown quantity at this point
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.
Reply With Quote
Reply


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 08:20.

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