Go to Post Curse you and your logic! - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2014, 19:19
Reed501's Avatar
Reed501 Reed501 is offline
Team Captain
AKA: Reed Schrier
FRC #2637 (Phantom Catz)
Team Role: Leadership
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Palos Verdes
Posts: 20
Reed501 is an unknown quantity at this point
URGENT: Code not working for various reasons

So this morning's been long, at 9 AM I was told to come in to "fix the code" immediately I came across an error where, even after deploying, the driver station said "No Robot Code".

So I copied last year's code and edited it to this year's code. Then whenever I built the code it would just load the old code and our new code couldn't be built.

Then I made a new project and put the new code in and that gave me the original problem; the last year's code was built again.

After manually editing the old code directly and uploading that on the robot, it seemed as though the code ran only once and didn't loop.

I tried to change the properties and the target file of the project but they didn't help either.
Is there anybody who knows what to check??

Last edited by Reed501 : 01-02-2014 at 19:39.
  #2   Spotlight this post!  
Unread 01-02-2014, 20:06
Reed501's Avatar
Reed501 Reed501 is offline
Team Captain
AKA: Reed Schrier
FRC #2637 (Phantom Catz)
Team Role: Leadership
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Palos Verdes
Posts: 20
Reed501 is an unknown quantity at this point
[URGENT]"no robot code" on the driver station??[URGENT]

I still have the problems with the robot code.

Whenever I try to deploy the code on cRIO, the driver station says "no robot code" and I cannot use my latest code.
I suppose an older program is still on the robot.

Can anyone help us, this is an URGENT issue!!
  #3   Spotlight this post!  
Unread 01-02-2014, 20:11
xForceDee's Avatar
xForceDee xForceDee is offline
Registered User
AKA: Bart Kerfeld
FRC #4239 (Warpspeed)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2012
Location: Minnesota
Posts: 58
xForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to behold
Re: URGENT: Code not working for various reasons

That certainly is an interesting problem.

To make sure my interpretation is correct, the original problem was that the driver station was showing "No Robot Code". In an attempt to remedy this issue, you took your old code and edited it. When you deployed this "edited" code, the driver station recognized that there was code on the robot, however, it was the old "unedited" code.

Then I am a little confused on what came next. You say that you made a new project with the new code and this resulted in the original problem; deploying the program would give the robot the old code. This is confusing to me because you said the original problem was that the driver station not seeing code. So if you could maybe clarify a little on what exactly happened after each action that would be great. Also, maybe some specifications on what language you are using along with whatever else you have even the slightest suspicion of being the root of the problem. These things will really help us help you solve this problem.

Unfortunately, I do not have an exact answer to this. Here is what I would do if I were in your situation. 1) Ensure I am seeing Robot Communication in the driver station (if not there is another problem) 2) Check to make sure I am deploying everything properly from the correct files. 3) Restart both the computer and the robot. 4) Reformat the cRIO 5) Replace the ribbon cable 6) Post my updated findings on CD
  #4   Spotlight this post!  
Unread 01-02-2014, 20:11
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,513
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: [URGENT]"no robot code" on the driver station??[URGENT]

What language are you using?

No code means that your code is not deployed to the robot and that it has no code to run.

Ah, I see that you actually already have a thread on this. Request this post is locked.
  #5   Spotlight this post!  
Unread 01-02-2014, 20:13
apples000's Avatar
apples000 apples000 is offline
Registered User
no team
 
Join Date: Mar 2012
Rookie Year: 2012
Location: United States
Posts: 222
apples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant future
Re: [URGENT]"no robot code" on the driver station??[URGENT]

This is the third time you have posted this. It's really hard for anybody to help you, as this could be caused by a large number of things. Try loading a new default robot project on the robot.
  #6   Spotlight this post!  
Unread 01-02-2014, 20:32
Reed501's Avatar
Reed501 Reed501 is offline
Team Captain
AKA: Reed Schrier
FRC #2637 (Phantom Catz)
Team Role: Leadership
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Palos Verdes
Posts: 20
Reed501 is an unknown quantity at this point
Re: URGENT: Code not working for various reasons

The original issue I am still on is when copying the project, the old code is being built. This in Windriver C++. The only thing I haven't done on the checklist is reformat the cRIO, because whenever I reformat it, it never reformats. I stay on the same image and it only displays "Rebooting cRIO..." I have to end the process because it will do so forever. Thanks, that may be the underlying problem.
  #7   Spotlight this post!  
Unread 01-02-2014, 20:41
David Fort David Fort is offline
Registered User
FRC #1001
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2003
Location: Cleveland, OH
Posts: 26
David Fort is on a distinguished road
Re: URGENT: Code not working for various reasons

I apologize in advance for suggesting something really lame for the

Quote:
"Rebooting cRIO..."
problem. We struggled with the same thing (using LabView) and it turned out our laptop switched to a different WiFi hotspot following the re-image, or somewhere along the way.

i.e. we were connected to the cRIO with the imaging tool, started the Format process, stuck on Rebooting cRIO for a very long time. Turned out we were now connected to the School's WiFi instead of the robot WiFi.

(this sort of thing often happens when robot power is cycled, taking down the D-Link too. I can't explain why it happened in this case).

If you are stuck there again, check that you can ping the robot:
cmd> ping 10.xx.yy.2
or see if you can get to the dlink
cmd> pint 10.xx.yy.1
  #8   Spotlight this post!  
Unread 01-02-2014, 20:47
xForceDee's Avatar
xForceDee xForceDee is offline
Registered User
AKA: Bart Kerfeld
FRC #4239 (Warpspeed)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2012
Location: Minnesota
Posts: 58
xForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to behold
Re: URGENT: Code not working for various reasons

Quote:
Originally Posted by Reed501 View Post
The only thing I haven't done on the checklist is reformat the cRIO, because whenever I reformat it, it never reformats. I stay on the same image and it only displays "Rebooting cRIO..." I have to end the process because it will do so forever. Thanks, that may be the underlying problem.
Going with that possibility, here is some reference material you may find useful.

- How to Re-Image you cRIO (doubt you need this but may be a nice refresher)
- CD post of cRIO formatting issue
- Some other webpage

Keep in mind this may not be the issue at all. It could be something so simple that it keeps getting overlooked. C++ is the only setup I am not familiar with unfortunately. Hopefully someone with experience on this specific issue will chime in soon. Until then, keep updating CD with new, worthwhile discoveries. When you do figure this out (and you will), be sure to post the solution in case one of us finds ourselves in a similar situation. Wish you the Best!
  #9   Spotlight this post!  
Unread 01-02-2014, 23:25
Jarren Harkema's Avatar
Jarren Harkema Jarren Harkema is online now
Dancing Drive Coach
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Sep 2013
Rookie Year: 2013
Location: Michigan
Posts: 161
Jarren Harkema is a name known to allJarren Harkema is a name known to allJarren Harkema is a name known to allJarren Harkema is a name known to allJarren Harkema is a name known to allJarren Harkema is a name known to all
Re: [URGENT]"no robot code" on the driver station??[URGENT]

If I recall correctly, when ever we fully deploy code onto our robot, we have to restart it before the driver station indicates that code is on the robot. We are using labview.
  #10   Spotlight this post!  
Unread 01-02-2014, 23:46
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: URGENT: Code not working for various reasons

You didn't say what programming language you're using. My advice in this post applies only to LabVIEW. If that's not what you use, ignore it.

When you copy a project's folder, the build destination doesn't change. You have to open the FRC Robot Boot-up Deployment properties and change the Information category to have the correct Local destination directory.

You are building the code by right-clicking on the FRC Robot Boot-up Deployment line and choosing Build from the menu, and then installing it on the robot by choosing Run as startup, right?

Last edited by Alan Anderson : 01-02-2014 at 23:49.
  #11   Spotlight this post!  
Unread 01-02-2014, 23:47
mega900997's Avatar
mega900997 mega900997 is offline
Registered User
FRC #0263 (Sachem Aftershock)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Ronkonkoma
Posts: 58
mega900997 is on a distinguished road
Re: [URGENT]"no robot code" on the driver station??[URGENT]

When you download the code and reboot the cRIO, open up netconsole and look at the output when the cRIO boots up. If there is an error within the code the code will not run, so check the output which will show what the error is. This is what I do whenever it happens to me, and I use C++ as my programming language. It may or may not work for you, but you can try. I'm not sure if netconsole works with the other programming languages.
__________________
2015
Suffield Shakedown Winners & Most Points Scored
South Florida Regional 6th Seed, #5 Alliance Captains, Regional Winners w/ 2383 & 386, Innovation in Control Award
NY Tech Valley Regional 5th Seed, QF, Excellence in Engineering Award
SBPLI Long Island Regional 4th Seed, Finalists

Hopper Division 14th Seed, QF
  #12   Spotlight this post!  
Unread 02-02-2014, 14:39
kghaemi96 kghaemi96 is offline
Driver/Know-it-all/Engineer
AKA: Kevin G
FRC #2637 (Panthers)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2011
Location: California
Posts: 30
kghaemi96 is an unknown quantity at this point
Re: [URGENT]"no robot code" on the driver station??[URGENT]

Quote:
Originally Posted by apples000 View Post
This is the third time you have posted this. It's really hard for anybody to help you, as this could be caused by a large number of things. Try loading a new default robot project on the robot.
I'd like to apologize in behalf of Reed. He was a bit flustered due to the issues we were having yesterday.

A clarification for all of you that are kind enough to help. We programmed in C++. Sadly I have next to no knowledge in programming so there isn't much else I can tell you. All I know is when we use a basic code that we wrote to see if the code was being properly uploaded, everything was good on the Driver Station. We were also able to do the same once adding basic drivetrain code to (coded 6 talons). However our issue came up when we attempted to add pneumatics onto the code. Whenever we tried to activate the compressor there was no signal on sidecar. The solenoids were getting signal though!

Again I would like to sincerely apologize for the minor post spamming, I hope that you guys are able to help.

Thanks,
Kevin
__________________
Why not both? ¿Por qué no los dos?

2011 Las Vegas Regional Semifinalists (5th Alliance Captain)
2012 Las Vegas Regional Semifinalists (2nd Alliance)
2013 Inland Empire Regional Quarterfinalists (7th Alliance)
2014 Central Valley Regional Quarterfinalists/Creativity Award (7th Alliance Captain with 2085 and 5136)
2014 Los Angeles Regional Semifinalists (4th Alliance Captain with 696 and 5102)
  #13   Spotlight this post!  
Unread 02-02-2014, 15:09
GaryVoshol's Avatar
GaryVoshol GaryVoshol is offline
Cogito ergo arbitro
no team
 
Join Date: Aug 2005
Rookie Year: 2000
Location: Royal Oak, MI
Posts: 5,728
GaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond repute
Re: URGENT: Code not working for various reasons

3 threads merged into 1
__________________
(since 2004)
  #14   Spotlight this post!  
Unread 02-02-2014, 15:27
jmartin jmartin is offline
Registered User
AKA: Joseph Martin
FRC #0172 (Northernforce)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Gorham
Posts: 30
jmartin is on a distinguished road
Re: URGENT: Code not working for various reasons

When deploying code from WindRiver, have you gone into Window->Preferences->FIRST Downloader Preferences and made sure the right file is selected? Simply creating a new project or building a different one doesn't change this setting. Also make sure that the project was built -- just deploying code doesn't automatically rebuild for you.
  #15   Spotlight this post!  
Unread 02-02-2014, 21:29
carrud carrud is offline
Registered User
AKA: Clark Rudder
FRC #2637
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Los Angeles Area
Posts: 20
carrud is an unknown quantity at this point
Re: URGENT: Code not working for various reasons

The original problem posted by the OP re: no code was figured out (though Reed may not be fully aware as he was offline today). The problem is as discussed here where code errors/issues are not surfaced when compiling or linking or deploying. They are only surfaced in Netconsole after you deploy and then restart crio (when using WindRiver c++, not sure about elsewhere). So, if you are not paying attention to Netconsole you could be led to believe that you have deployed code, but you haven't. The code seems to get FTPd to crio, but not implemented on crio restart.

This being a "single-mode OS" seems to be the underlying force behind this happening. At least in some cases.

If you run into this kind of problem (where you successfully deploy code, but DriverStation continues to say no robot code) then check Netconsole for hints as to why.

Regards
Closed Thread


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 09:20.

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