Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Weird issue "No Robot Code" (http://www.chiefdelphi.com/forums/showthread.php?t=82940)

chdmwu 17-02-2010 20:17

Weird issue "No Robot Code"
 
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

Re: Weird issue "No Robot Code"
 
HI CHRIS!

davidalln 09-02-2011 00:40

Re: Weird issue "No Robot Code"
 
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

Re: Weird issue "No Robot Code"
 
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

Re: Weird issue "No Robot Code"
 
Quote:

Originally Posted by davidalln (Post 1018936)
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).


All times are GMT -5. The time now is 13:55.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi