We've recently started having this problem where the cRIO connects to the driver station - we can ping it fine - but when we go to Enable it, we encounter some issues:
- The driver station indicates that it's enabled
- The compressor doesn't turn on, and no user messages appear
- After a few seconds, the driver station loses communication
- During this time, however, the battery voltage is displayed correctly
When we try to ping it while the communications seem to be down, it times out for a bit and then comes back. We concluded that this is because the cRIO reboots whenever Teleop is started. Even worse, however, is that this behavior is completely inconsistent - sometimes when we hard reset the cRIO, we have this problem, and sometimes we don't. We've tested it further and found that the problem seems to happen in the exact same way regardless of how we're connected, wireless or tethered. We can't find anything in our code that would cause the cRIO to reboot, and we even tried reverting to a previous version of the code that definitely worked and we still had the same problems. We got the most recent v28 image and the latest Windriver update -- no luck.
I've posted our code to a pastebin, hopefully someone here can help us out.
http://paste.ubuntu.com/568444/