View Single Post
  #1   Spotlight this post!  
Unread 17-02-2010, 20:17
chdmwu chdmwu is offline
Registered User
FRC #1351
 
Join Date: Feb 2010
Location: USA
Posts: 1
chdmwu is an unknown quantity at this point
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.
Reply With Quote