Go to Post Hey Kid! Get off my lawn!!! - Joe Johnson [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 14-01-2011, 02:43
Diserasta Diserasta is offline
4 Hours of sleep a day on avg.
AKA: Samouil
FRC #3132 (Thunder Down Under)
 
Join Date: Nov 2009
Rookie Year: 2010
Location: Sydney
Posts: 9
Diserasta is an unknown quantity at this point
No Robot Code

Our team has started programming and we have come across a problem. We are using WindRiver C++ and when we deploy our code, the driver station does not recognise the code we deploy or it's not even being found. Was there any specific name the program has to have to be recognised, because to remember having this problem last year, and it having something to do with this.

Thanks in advance!
__________________
Code:
In .h
RobotDrive *ted;
RobotDrive *tedDrive;

In .cpp
DriveTrain::DriveTrain (RobotDrive *ted){
tedDrive = &*ted;
}
Yo dawg, I heard you like pointers, so I put a pointer in yo pointer, so you can de-reference your pointer while you point to yo pointer.

Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2011, 04:28
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: No Robot Code

The correct interpretation of the No Robot Code light is that no robot code is running and responding to the protocols in place. The DS has no way to know what is on the disk of the cRIO, and it doesn't try to manage that anyway.

You may want to use an ftp program or even Windows File Explorer to ftp to the cRIO and look at the info on the startup program. You can then rebuild and deploy and see if it is updated. If not, your build is failing in some way.

Another debugging technique is to use the serial cable or netconsole to see if your program starts and promptly exits -- a possibility when using C++.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2011, 08:48
Diserasta Diserasta is offline
4 Hours of sleep a day on avg.
AKA: Samouil
FRC #3132 (Thunder Down Under)
 
Join Date: Nov 2009
Rookie Year: 2010
Location: Sydney
Posts: 9
Diserasta is an unknown quantity at this point
Re: No Robot Code

Quote:
Originally Posted by Greg McKaskle View Post
The correct interpretation of the No Robot Code light is that no robot code is running and responding to the protocols in place. The DS has no way to know what is on the disk of the cRIO, and it doesn't try to manage that anyway.

You may want to use an ftp program or even Windows File Explorer to ftp to the cRIO and look at the info on the startup program. You can then rebuild and deploy and see if it is updated. If not, your build is failing in some way.

Another debugging technique is to use the serial cable or netconsole to see if your program starts and promptly exits -- a possibility when using C++.

Greg McKaskle
Thanks for the info. It was just me being stupid after all, I reflashed with this years cRIO image and it works fine. Dunno what it was 0.o. But problem solved, so all is good.
__________________
Code:
In .h
RobotDrive *ted;
RobotDrive *tedDrive;

In .cpp
DriveTrain::DriveTrain (RobotDrive *ted){
tedDrive = &*ted;
}
Yo dawg, I heard you like pointers, so I put a pointer in yo pointer, so you can de-reference your pointer while you point to yo pointer.

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


All times are GMT -5. The time now is 15:23.

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