View Single Post
  #2   Spotlight this post!  
Unread 25-01-2017, 10:32
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 154
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
Re: Need NetworkTables to update??(Grip)

GRIP only generates the vision processing code. You have to write the NetworkTables part.

If you take a look at this screensteps page, you can publish to NetworkTables inside the callback in the second code block. Something like

Code:
visionThread = new VisionThread(camera, new Pipeline(), pipeline -> {
  ...
  centerX = ...
  centerY = ...
  NetworkTables.getTable("vision").putNumber("centerX", centerX);
  NetworkTables.getTable("vision").putNumber("centerY", centerY);
});
We should also have an example for sending results to the SmartDashboard up in the next few days.
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote