Quote:
Originally Posted by ozrien
Jared, is your team also using C++?
|
We're using Java.
When we deploy code, we can read current draw/temperature of the PDP. After restarting the roboRIO, we can no longer read the current draw/temperature, and CPU usage is very high. If we click the "restart user code" button, the cpu usage decreases, and CAN works. If we click the "reboot roboRIO" button, the cpu usage decreases, and CAN works again.
We solved the problem by reimaging the controller. Waiting a long period of time (10 minutes) between power on and enabling the robot did not solve the problem.
When this happened, I logged into the roboRIO and used the top command to see what was using all of the CPU usage, and it was the FRC user program. Starting and stopping the user program caused it to work normally. I also tried editing the script that starts the user program so that it did nothing, then manually started our user program, which resulted in the program running normally, confirming that the problem only happens if the user code is started as the control system is booting.