Go to Post Good robots with bad drivers can lose. Bad robots with good drivers can win. Good robots with good drivers can dominate. - James Tonthat [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 08-02-2011, 23:34
Jonathan W.'s Avatar
Jonathan W. Jonathan W. is offline
Registered User
FRC #1351
 
Join Date: Jun 2007
Location: Archbishop Mitty High School
Posts: 10
Jonathan W. has a spectacular aura aboutJonathan W. has a spectacular aura aboutJonathan W. has a spectacular aura about
Re: Weird issue "No Robot Code"

HI CHRIS!
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2011, 00:40
davidalln's Avatar
davidalln davidalln is offline
World's Worst Coder
AKA: David Allen
FRC #2415 (The Westminster Wiredcats)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Atlanta, GA
Posts: 108
davidalln is on a distinguished road
Send a message via AIM to davidalln
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.
__________________
SANTOSH ANDREW DECKER RICK WYNNIE SEAN DEREK MATT
(alamo (semis), p'tree (CHAMPS!), nc (CHAMPS!), newton (quarters))


Best four years of my life. Thanks to everyone who made it happen.
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2011, 21:15
Arjun Namineni Arjun Namineni is offline
Registered User
FRC #4384
Team Role: Coach
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Troy, MI
Posts: 27
Arjun Namineni is an unknown quantity at this point
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.
__________________
2009-2013: FRC 226 - Student
2014-Present: FRC 4384 - Mentor
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2011, 14:22
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Weird issue "No Robot Code"

Quote:
Originally Posted by davidalln View Post
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).
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 14:04.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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