Go to Post devote your life to FIRST. It will pay off. - suneel112 [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 10-02-2012, 23:36
cjlane1138 cjlane1138 is offline
Team 1138
FRC #1138 (Eagle Engineering)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 88
cjlane1138 is an unknown quantity at this point
No Robot Code EVER -- Help Please

Hello everyone,
So, my team was programming our robot. One minute everything was working fine, and the next, I deployed, and we started getting this huge "No Robot Code" problem.
We were actually able to drive the robot at one point. Then, it stopped working all of the sudden.
Here is what we did in order:

Build->Deploy->Reboot->No Robot Code
Reboot->No Robot Code
Reboot of Classmate->No Robot Code
ReImage of CRIO->Rebuild of Code->Deploy->Reboot->No Robot Code
Build->Deploy->Reboot->No Robot Code
Build->Deploy->Reboot->No Robot Code
ReImage of CRIO->Rebuild of Code->Deploy->Reboot->No Robot Code

This entire time, we were connected to the robot through the wireless bridge. We were getting comms every time, but No Robot Code.

Is there anyone that has had the same problem and fixed it? Or is there anyone that has suggestions on how to fix it possibly?

If there are any more details you need, just reply with what you want to know.

Thank you,
Eagle Engineering 1138
__________________
Eagle Engineering 1138

Last edited by cjlane1138 : 11-02-2012 at 01:17.
  #2   Spotlight this post!  
Unread 10-02-2012, 23:54
ianonavy ianonavy is offline
Programming Mentor/Alumnus
AKA: Ian Adam Naval
FRC #3120 (RoboKnights)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2008
Location: Sherman Oaks
Posts: 32
ianonavy is an unknown quantity at this point
Re: No Robot Code EVER -- Help Please

Check to make sure that your cRIO modules are in the right slots and that the cables connecting them to your digital sidecar have a proper connection. If you want to be really ardent, you can try checking continuity between each pin using an ohmmeter. You might want to ensure that all of your wires are connected properly and that your sidecar is receiving adequate power. Our team had a similar problem and replacing the sidecar ended up getting the Robot Code light to finally turn green.

It's more than likely a wiring issue than a programming issue from experience.
  #3   Spotlight this post!  
Unread 11-02-2012, 00:01
cjlane1138 cjlane1138 is offline
Team 1138
FRC #1138 (Eagle Engineering)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 88
cjlane1138 is an unknown quantity at this point
Re: No Robot Code EVER -- Help Please

Quote:
Originally Posted by ianonavy View Post
Check to make sure that your cRIO modules are in the right slots and that the cables connecting them to your digital sidecar have a proper connection. If you want to be really ardent, you can try checking continuity between each pin using an ohmmeter. You might want to ensure that all of your wires are connected properly and that your sidecar is receiving adequate power. Our team had a similar problem and replacing the sidecar ended up getting the Robot Code light to finally turn green.

It's more than likely a wiring issue than a programming issue from experience.
Thank you. Although, we are not really sure whether it is a wiring issue. We heatshrinked, wrapped, and labeled everything. Everything is neat. But in the morning I will have our electronics lead check it out! Will let you know.

Thank you!
__________________
Eagle Engineering 1138
  #4   Spotlight this post!  
Unread 11-02-2012, 00:03
saphiren's Avatar
saphiren saphiren is offline
übermensch
AKA: Andrew Montenigro
FRC #0555 (Montclair Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: New Jersey
Posts: 1
saphiren is on a distinguished road
Re: No Robot Code EVER -- Help Please

You're not the only team to have this problem, check this thread to see how 3841 got their code to work (the most helpful stuff is close to the bottom).

A few things to check: is your DB37 ribbon cable one of the ones that shipped with the backwards connector, and did your team fix it exactly as specified in FIRST's guide? Have you gotten the code to run before, or is this the first time you've tried deploying it? Have you been deploying the correct .out file to the robot?

Hope this helps
__________________
  #5   Spotlight this post!  
Unread 11-02-2012, 00:27
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,835
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: No Robot Code EVER -- Help Please

If you are using C++ or Java, then fire up Netconsole to see why the code is crashing.

If you are using LabVIEW then you should be doing:
Build
Run as startup
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 11-02-2012 at 00:30.
  #6   Spotlight this post!  
Unread 11-02-2012, 00:30
cjlane1138 cjlane1138 is offline
Team 1138
FRC #1138 (Eagle Engineering)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 88
cjlane1138 is an unknown quantity at this point
Re: No Robot Code EVER -- Help Please

Quote:
Originally Posted by Mark McLeod View Post
Build
Run as startup
We have done this, many times
__________________
Eagle Engineering 1138
  #7   Spotlight this post!  
Unread 11-02-2012, 00:34
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,835
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: No Robot Code EVER -- Help Please

Try running in debug mode to see if something happens to the code as you watch it execute.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #8   Spotlight this post!  
Unread 11-02-2012, 00:34
androb4's Avatar
androb4 androb4 is offline
..is trying to take this year off.
AKA: Andrew A.
no team
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2003
Location: Houston, TX
Posts: 220
androb4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to behold
Re: No Robot Code EVER -- Help Please

What you're supposed to do is:
1) Go to the project explorer in LabView
2) Expand the "Robot Specifications"(I believe) tab at the bottom of the list.
3) Right click one of the items on the list that'll show. Build, and Set/Run As Startup
4) First Build it.
5) Then Set is a start up.
Done Deploying!!
__________________
FRC 441 Mentor 2012-2015
FRC 441 Alumni 2009-2012
FTC 4673 Alumni 2011-2012
FRC 1484 Alumni 2006-2008

  #9   Spotlight this post!  
Unread 11-02-2012, 00:36
androb4's Avatar
androb4 androb4 is offline
..is trying to take this year off.
AKA: Andrew A.
no team
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2003
Location: Houston, TX
Posts: 220
androb4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to behold
Re: No Robot Code EVER -- Help Please

Did you make sure that you have the most recent updates. And that you imaged the cRio correctly??
__________________
FRC 441 Mentor 2012-2015
FRC 441 Alumni 2009-2012
FTC 4673 Alumni 2011-2012
FRC 1484 Alumni 2006-2008

  #10   Spotlight this post!  
Unread 11-02-2012, 00:40
cjlane1138 cjlane1138 is offline
Team 1138
FRC #1138 (Eagle Engineering)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 88
cjlane1138 is an unknown quantity at this point
Re: No Robot Code EVER -- Help Please

Sorry everyone, I forgot to tell you guys that we are coding in C++, not LabView. So we are using WindRiver. And yes, we have the most recent updates and we reimaged the CRIO 2x correctly.
__________________
Eagle Engineering 1138
  #11   Spotlight this post!  
Unread 11-02-2012, 01:33
cjlane1138 cjlane1138 is offline
Team 1138
FRC #1138 (Eagle Engineering)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 88
cjlane1138 is an unknown quantity at this point
Re: No Robot Code EVER -- Help Please

Also, I forgot to say that the robot was working before it started giving us "No Robot Code"
__________________
Eagle Engineering 1138
  #12   Spotlight this post!  
Unread 11-02-2012, 07:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,835
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: No Robot Code EVER -- Help Please

Quote:
Originally Posted by Mark McLeod View Post
If you are using C++ or Java, then fire up Netconsole to see why the code is crashing.
What did it show?

Quote:
Originally Posted by cjlane1138 View Post
Sorry everyone, I forgot to tell you guys that we are coding in C++, not LabView.
Post in the C++ sub-forum next time and you'll get more help.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 11-02-2012 at 08:28.
  #13   Spotlight this post!  
Unread 11-02-2012, 08:07
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 EVER -- Help Please

My guess is that the code is crashing very early in its execution. The Robot Code LED is based on getting data from the user framework code via the FRC_Communications.out file.

As others have said, you'll get more help from the C++ forums, but I'd try to use the debugging tools, even just placing print statements every five or ten lines to see how far you are getting will help. STOBbing is another technique many developers find helpful. It stands fore Sync To Old Builds. You use source code control to return to previous builds and determine if the problem existed there. Then you diff the changes you've made in a few at a time to identify the culprit. Personally I find it quicker and more exciting to debug, but both are ways to make progress.

Greg McKaskle
  #14   Spotlight this post!  
Unread 11-02-2012, 10:51
lscime lscime is offline
Registered User
AKA: Luke Scime
FRC #2614 (Mountaineer Area RoboticS (MARS))
Team Role: Alumni
 
Join Date: Jun 2008
Rookie Year: 2008
Location: Morgantown, WV
Posts: 73
lscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to behold
Re: No Robot Code EVER -- Help Please

Make sure all of the DIP switches on the front of cRIO are in the correct orientation (one of them may have accidentally changed since the time when you last saw your robot working). In particular make sure that the "No App" switch is in the "off" position.
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 04:37.

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