Quote:
Originally Posted by mikearnold514
@Austin
We got around the error we were having with the NT bind() as originally reported here. I updated the GitHub ticket #465 with our code and findings. In short, for anyone looking here, we moved the CameraServer.getInstance().startAutomaticCapture() out of the class constructor of our subsystem and into a regular public method in our subsystem then called that method from RobotInit() like this: Robot.visionUtil.startImageProcessing(); Obviously, folks will use whatever naming is suitable for them. Also, not everyone is using the CommandBasedRobot framework so it might be different for those folks but this is the general idea.
I hope folks find this information helpful and I appreciate the support you have given. You will see in the ticket that I did ask you to review the code as we are not getting any meaningful data from the Pipeline but we can move that to a different topic thread if you think that is best.
Thanks again Austin and kindest regards,
Mike Arnold, Team 514.
|
https://github.com/wpilibsuite/allwp...ment-276674779
You wanted a feedback on your code:
My team and me made a visionSensor that implements PIDSource, this sensor is not an subsystem and it return a pidValue in pidGet.
So you can use it inside a PIDController.
Make a pidVisionSourceType to choose what will get in pidValue.
Hope this helps you

.