Copied from an email I just sent to some mentors:
GitHub - highlandprogramming/WIP-2013-Code-FRC: Repository for 2013 code in development.
All changes can be seen there and I can also point them out tomorrow.
Biggest visible problems:
Higher variable ping rate. Anywhere from <1 ms to over 800 ms, it jumps around and each spike has a random action.
C-Rio’s processor usage is between 98% and 100% last Monday, it was only around the lower 80%s. The change between packing the competition robot and today had only one change, the reversible controls on the drive. However, when I initial added and test that. CPU usage was still in the lower 80% range.
The crashing upon start has existed since week 3, but hasn’t be as noticeable until I recently when it was happening instead of every few times, to every time. It became more noticeable when we were fixing the low hang code. It started before we even made changes and effected out progress the entire time when downloading and testing, as sometimes a full restart was required to work again.
I suspect the ping problem is directly related to the high CPU usage causing delays in being even able to respond.
The high CPU usage is there with and without the Camera code.
The following messages are displayed by the Drivers Station in the follow order, total time between the first and last message is slightly less than 1 second.
Teleoperated Disabled, Autonomous Disabled or Test Disabled
Teleoperated Enabled, Autonomous Enabled or Test Enabled
Watchdog Not Feed <------Code execution stops, hence not being feed, however, this all happens in less than 1 second, and watchdog is set to 1 second before requiring a feed line. The C-Rio then crashes
No Robot Code <-------C-Rio crashes and automatically restarts. ping communication severed for 5 seconds during initial C-Rio restart.
This happens 1 reboot, sometimes 2 or 3 and then functions normally (After wasting 15-20 seconds each time to get communication again.) Rarely, but has happened at-least 3 times, it gets stuck rebooting and never restores communication, switching from getting a ping, Request Time for 5 seconds then Destination Host Unreachable.
Another note, is we did not test the robot with another laptop. The ASUS Netbook was recently left on until the battery died for two nights in a row. Yesterday it failed to recovery from a resume and we had increased problems, and today it did a full out Windows Repair.
Any thoughts or suggestions on how to proceed would be greatly appreciated.
We have so far:
Tried physical roots of Driver station and robot. No dice.
Removing comments and extra lines (Minus reducing Watchdog feed lines)
Comment and remove recent changes. No dice, returned those changes.
Crashing existed on both the competition and practice robots. On both the C-Rio I and II
Using Windriver in debug mode, sometimes crashed Windriver as well. So we must have made a serious problem. I will try to get some kind of exception error out of it tomorrow, anything that can help find the solution, the better.
First thing tomorrow I am personally re-writing the entire code to see if that helps anything (This project has had random problems like entire lines not building with no errors. As well as 1 bad build with no errors.
As I just stated, any suggestions would be highly appreciated, especially since the first regions are only a little bit away, we want to get this issue resolved as soon as possible.