Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   How to access driverstation network tables from within robot code with grip (http://www.chiefdelphi.com/forums/showthread.php?t=142603)

1024Programming 01-26-2016 06:13 PM

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.

Arhowk 01-26-2016 06:42 PM

Re: How to access driverstation network tables from within robot code with grip
 
Quote:

Originally Posted by 1024Programming (Post 1530551)
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);
}



All times are GMT -5. The time now is 09:03 AM.

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