![]() |
No robot code
After installing all libraries and imaging the roborio the code seems not to be working sometimes (after several deploys in a row without restarting the roborio).
Every deploy I get a cameraserver exceptions but I choose to ignore it because the code is working fine. But I do get a specific warning when the code fails to run, i will edit this post as soon as i will get it but until then, the warning says that there is a TCP bind on a used port if i remember correctly. I guess that this is a bug and I would like to see if other teams got this problem too, I hope WPILIB devs will see this post. |
Re: No robot code
Either post your code here or PM it to me and I will take a look.
|
Re: No robot code
Actually, take a look at this ScreenSteps article. I think it will solve your problem.
http://wpilib.screenstepslive.com/s/4485/m/13809/l/681690 |
Re: No robot code
Quote:
|
Re: No robot code
Having a similar issue in c++. I've deployed the code several times now to no avail.
|
Re: No robot code
Quote:
|
Re: No robot code
Quote:
As I said in the post, its says that the TCP conection is already exist in this port and its faild to Bind();. Thanks for you help! |
Re: No robot code
Quote:
|
Re: No robot code
Quote:
|
Re: No robot code
Quote:
This error also occurs in a simple project so I don't know if it will make any difference. Edit: the error: Code:
NT: ERROR: bind() to port 1735 failed: Address already in use (TCPAcceptor.cpp:108) |
Re: No robot code
@AustingShalit
I was looking at issue #465 in GitHub and noticed that this issue was not assigned yet. My team, 514 Miller Place, is having the same issue as reported here. Was wondering if anyone was working this issue and if there was an update. Kind Regards, Mike |
Re: No robot code
Just following up to see if anyone had a resolution to this problem. My team is still experiencing the issue. Will be in the tech room tomorrow night. Was hoping to discuss this with someone to get some ideas on how best to troubleshoot.
Thanks! Mike |
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. |
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 ;). |
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 |
| All times are GMT -5. The time now is 23:52. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi