View Single Post
  #3   Spotlight this post!  
Unread 25-01-2017, 14:14
MarlyM64 MarlyM64 is online now
Registered User
FRC #1660 (Harlem Knights)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: New York City
Posts: 2
MarlyM64 is an unknown quantity at this point
Re: Need NetworkTables to update??(Grip)

yes i have code similar to i, but it still won't work ._.



visionThread = new VisionThread(camera, new GripPipeline(), pipeline -> {
if (!pipeline.filterContoursOutput().isEmpty()) {

System.out.println(pipeline.filterContoursOutput() .get(0));
//SmartDashboard.putNumber("opencv",pipeline.filterC ontoursOutput().get(0));
table = NetworkTable.getTable("GRIP/marly");

double[] def = new double[0];
double[] areas = table.getNumberArray("width", def);
System.out.println(areas[0]);
}
});
visionThread.start();
Reply With Quote