|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: No robot code
@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. |
|
#2
|
|||
|
|||
|
Re: No robot code
Quote:
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 . |
|
#3
|
|||
|
|||
|
Re: No robot code
Thanks for the feedback. We were also considering PID Control and would likely try a PID Subsystem. We will definitely consider your approach. We happen to be stuck on trying to get meaningful data from our VisionPipeline and it is likely something silly we are doing that is holding us up now.
As for the original error, I am concluding that by your reply you are past this issue. If that is the case then I would recommend we tell Austin and the WPILib development team that they can close issue #465, if it has not been closed already. But since you opened the issue originally, I will leave that action to you. Kind Regards, Mike |
|
#4
|
|||
|
|||
|
Re: No robot code
Quote:
Any way good luck ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|