Log in

View Full Version : Robot Not Recieving Code


Ross3098
30-11-2011, 07:50
Ive recently brought the robot out of the garage in a sense and wanted to start tinkering with it. I downloaded the latest windriver update on FIRSTforge and reimaged the cRIO for image v30. I downloaded code to the robot and it recieved the code, but I accidently downloaded an empty project so it wasnt able to do anything. I then set the downloader to the right code to download and used the deploy button to download. It undeployed and deployed like it should. After I rebooted the robot there was no robot code.

Anyone know how to fix this problem I can't think of anything I did wrong in setting this up.:confused:

Mark McLeod
30-11-2011, 09:18
Use netconsole to see where your code is immediately dying.
I haven't seen v30 for the cRIO, so I'll have to go looking for that.

Joe Ross
30-11-2011, 11:28
I haven't seen v30 for the cRIO, so I'll have to go looking for that.

It's in the offseason updates that fix the encoder rate problem. http://firstforge.wpi.edu/sf/frs/do/listReleases/projects.wpilib/frs.wpilib_c_version_11_0_for_2011_f and http://firstforge.wpi.edu/sf/frs/do/listReleases/projects.wpilib/frs.wpilib_labview_update_for_2011_f

Ross3098
30-11-2011, 12:52
Use netconsole to see where your code is immediately dying.

Could you tell me how to set up netconsole?:ahh:
Sorry I've never had this problem so I've never had to use it.

Mark McLeod
30-11-2011, 14:45
The cRIO gets setup for NetConsole by a selection in the cRIO Imaging Tool

Enable NetConsoleNetConsole on your PC gets installed as part of the FRC Utilities package. You should find it on your Windows Programs list, it'll be listed as NetConsole for cRIO.
Make sure your PC netmask on the connection you're using is set to 255.0.0.0, because NetConsole broadcasts.

calcmogul
17-12-2011, 14:55
My team just recently had this problem and solved it. Our code was being deleted after a power cycle because some functions weren't overridden in the C++ robot code. The RobotInit() virtual function was causing our problem. The cRIO outputted these functions to a console, like NetConsole, when overriding was required with a message similar to "RobotInit(): override me!".