Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   New C++ Error after mandatory update (http://www.chiefdelphi.com/forums/showthread.php?t=114783)

pfreivald 09-03-2013 13:01

New C++ Error after mandatory update
 
After we made the mandatory update in C++, our ability to tune PID failed -- it starts to work, and then we get an error that appears to kill the motors every second or so. (Please keep in mind that our code worked fine before the update).

Interspersed between our printed data, we get:

0xcd99b8 entered connection state: GOT_CONNECTION_FROM_CLIENT
Starting task: Server Connection Reader Thread
0xcd99b8 entered connection state: CONNECTED_TO_CLIENT
Bad message: A server should not receive a protocol version unsupported message
0xcd99b8 entered connection state: SERVER_ERROR
Close: 0xcd99b8
Task exited normally: Server Connection Reader Thread
task 0x11177f0 (FRC_Server Connection Reader Thread) deleted: errno=9 (0x9) status=0 (0)

We are also getting

Bad message: Unknown Network Table Message Type: 128
Close: 0xcd99b8
Task exited normally: Server Connection Reader Thread
task 0x11177f0 (FRC_Server Connection Reader Thread) deleted: errno=9

This problem is occurring whenever the robot is on, including when it is disabled. We have print statements to show our shooter rate data every 20 loops, and these errors are interspersed at rates that appear to be inconsistent with the main teleop while loop.

Any assistance that anyone can provide would be very appreciated.

RufflesRidge 09-03-2013 13:19

Re: New C++ Error after mandatory update
 
Looks like your Dashboard, or other network tables client is not the right version. Make sure your SmartDashboard is the latest version.

pfreivald 10-03-2013 20:42

Re: New C++ Error after mandatory update
 
We updated the dashboard the day before... and did it again after your suggestion, just to be sure. Same problem.

We tried again, only this time with a laptop that has not yet been updated. Everything worked fine, and we were able to tune our PID with no difficulties outside that which is normal when trying to tune PID.

As this update is mandatory, this concerns us rather muchly.

RufflesRidge 10-03-2013 20:50

Re: New C++ Error after mandatory update
 
Your best bet is probably filing a bug report at the WPILib project, attaching the code that causes the issue will probably help. If everything worked before the update then it sounds like a regression which I'd imagine the WPILib developers want to hear about

connor.worley 10-03-2013 20:59

Re: New C++ Error after mandatory update
 
We don't use any dashboard, so setting the dashboard to Remote Dashboard stopped the error for us.

pfreivald 10-03-2013 21:36

Re: New C++ Error after mandatory update
 
Quote:

Originally Posted by connor.worley (Post 1246221)
We don't use any dashboard, so setting the dashboard to Remote Dashboard stopped the error for us.

Ah, so you had the same error after the update?

connor.worley 10-03-2013 21:37

Re: New C++ Error after mandatory update
 
Quote:

Originally Posted by pfreivald (Post 1246244)
Ah, so you had the same error after the update?

Yes.

wireties 22-03-2013 06:09

Re: New C++ Error after mandatory update
 
Any resolution for this? We just noticed the same errors and we need the Dashboard!

TIA

pfreivald 22-03-2013 07:09

Re: New C++ Error after mandatory update
 
Quote:

Originally Posted by wireties (Post 1251180)
Any resolution for this? We just noticed the same errors and we need the Dashboard!

TIA

Yes, our programmers figured it out. I'll ask Spencer to post details ASAP.

Spencer Logan 22-03-2013 16:15

Re: New C++ Error after mandatory update
 
The problem has been solved. The error goes away when using the SmartDashboard, which was easy enough to set up. Thanks for the help, everyone.

Greg McKaskle 22-03-2013 20:00

Re: New C++ Error after mandatory update
 
Does that mean that the default dashboard had an issue?

Is this because the PID collection wasn't created on the robot? The default dashboard doesn't have a template for making PID objects, but it can be done.

Greg McKaskle

wireties 23-03-2013 00:09

Re: New C++ Error after mandatory update
 
In our case, using the FRC Dashboard and Smart Dashboard at the same time produces a flurry of mangled messages and kept us from playing. When we use only the Smart Dashboard we get the occasional error (printed to console) but the robot continues to operate.

pfreivald 23-03-2013 18:37

Re: New C++ Error after mandatory update
 
When we ran the mandatory update, we got an error that prevented us from being able to do anything at all. Once we installed the Smart Dashboard, the error went away and we could do whatever we needed to do.


All times are GMT -5. The time now is 12:37.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi