Log in

View Full Version : Weird issue "No Robot Code"


chdmwu
17-02-2010, 20:17
We have a weird error where the Classmate says that there is no robot code. We've isolated a line that is causing this.

This code:
// case COCKED:
// if(_kicking) {
// float my_setpoint = (float)FindNextSafeSpot(1);
// _pid.SetSetpoint(my_setpoint);
// }
// //TODO: cocked stuff
// break;

seems to be the problem, specifically the SetStpoint stuff. It looks like FindNextSafeSpot() is causing this. We changed th code there and have it just returning 1, but this is still causing the problem. If we comment this line out, however, the Classmate has no problems.

We found another thread with this problem and the issue was that the person was missing an -mlongcall linker flag. We checked and we do have this flag, so that's not the problem.

Has anyone else encountered this error, or does anyone have any idea what to do? We've been dealing with this all week.

Thanks!

Chris Wu - Team 1351.

Jonathan W.
08-02-2011, 23:34
HI CHRIS!

davidalln
09-02-2011, 00:40
When you get a No Robot Code error, that usually means that there was an error before the FRC_UserProgram (or something similar) task was called, thus causing there to be "no code." Try running the NetConsole with the broken code uncommented and see what errors, if any, it outputs.

Arjun Namineni
09-02-2011, 21:15
I encountered a similar problem the other week, and all I had to do was reimage the cRio. I'm not sure if it is the same problem for you, but it worked for me.:D

basicxman
12-02-2011, 14:22
When you get a No Robot Code error, that usually means that there was an error before the FRC_UserProgram (or something similar) task was called, thus causing there to be "no code." Try running the NetConsole with the broken code uncommented and see what errors, if any, it outputs.

If you try deploying to the cRio as a run configuration, runtime errors can appear (such as unresolved symbols).