|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
Re: Weird issue "No Robot Code"
HI CHRIS!
|
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
|||
|
|||
|
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.
![]() |
|
#5
|
|||
|
|||
|
Re: Weird issue "No Robot Code"
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "No Robot Code" problem | Deep-Blue | C/C++ | 4 | 14-02-2010 17:57 |
| "No Robot Code" error? plus other issues... | 3195mentor | NI LabVIEW | 3 | 13-02-2010 08:20 |
| G-FORCE's robot, named "philbot" a.k.a "armagedon in a polycarbonate box" | Bryan_2818 | Robot Showcase | 0 | 12-04-2009 20:54 |
| Modified default code gives "code violation" | scottmso | Programming | 8 | 10-02-2006 23:17 |
| Code error on RC after downloading "bells and whistles" version of Kevins camera code | DanDon | Programming | 6 | 10-01-2006 18:07 |