Go to Post You do realize that you all started jumping to conclusions without asking first which JVN he was talking about. - Jay H 237 [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 01-26-2016, 06:13 PM
1024Programming 1024Programming is offline
Registered User
FRC #1024
 
Join Date: Jan 2014
Location: Indiana
Posts: 43
1024Programming is an unknown quantity at this point
How to access driverstation network tables from within robot code with grip

We are able to view values from grip publishing now in networktable's outline viewer. How do we reference these values in the code to do vision processing?
EDIT: We have seen the sample code on screensteps live and grips github wiki. unless it has been changed very recently, we have already seen it.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-26-2016, 06:42 PM
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: How to access driverstation network tables from within robot code with grip

Quote:
Originally Posted by 1024Programming View Post
EDIT: We have seen the sample code on screensteps live and grips github wiki. unless it has been changed very recently, we have already seen it.
So what are you asking that isn't there?
https://github.com/WPIRoboticsProjec...va-FRC-program[/

Code:
for (double area : NetworkTable.getTable("grip").getNumberArray("targets/area", new double[0])) {
    System.out.println("Got contour with area=" + area);
}
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
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 09:03 AM.

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