Go to Post You think you are building robots, but you are really building yourselves. - sanddrag [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 22-06-2011, 14:49
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Crio Not taking code

So we download the code to our summer project robot and it downloads right. when we got to test it is doesn't do what we tell it to. We have tried to reimage it and reset it. We tried to use a different crio and still have the same problem./ Got any help?

Regards
Team 3038

Last edited by tomy : 22-06-2011 at 14:58.
Reply With Quote
  #2   Spotlight this post!  
Unread 22-06-2011, 15:23
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,746
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Crio Not taking code

You will have to provide more details, your problem description is too vague.

What are you telling it to do? And what is it doing instead?
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-06-2011, 15:40
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,713
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: Crio Not taking code

Your code is not working is all we can tell.

You can use netconsole to get a dump of the cRIO boot to see if your code is throwing an error and what the error is.

Commonly, attempting to use an uninitialized variable will kill the program right away, so that's a possibility. That would show up on a netconsole dump.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 22-06-2011, 15:53
ElliotCourant's Avatar
ElliotCourant ElliotCourant is offline
Elliot Courant
AKA: Elliot Courant
FRC #3038 (ICE Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Minnesota
Posts: 19
ElliotCourant is an unknown quantity at this point
Re: Crio Not taking code

I am the one who was dealing with it the most.
I wrote the code just to do tank drive with two motors and jaguars, i deployed the code and only one joystick is working and all the robot will do is move forward and backward. then I went back into the code and deleted all of the code related to movement so that regardless of what I do the robot should not move. I deployed the code and it did the same thing again.

I have re-imaged the crio at least 8 times today and each time i get the same result regardless of the code that i deploy to the robot.
__________________
"Error, Cannot Find Back-End!" -WindRiver C++ Error
"If you aren't getting any errors while you are programming, then you are doing something wrong." -Elliot Courant
Reply With Quote
  #5   Spotlight this post!  
Unread 22-06-2011, 16:43
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: Crio Not taking code

Quote:
Originally Posted by ElliotCourant View Post
I have re-imaged the crio at least 8 times today and each time i get the same result regardless of the code that i deploy to the robot.
Your description suggests that you're not downloading the code you think you are. Make sure you're pointing the deployment process to the same place you're putting the compiled program.
Reply With Quote
  #6   Spotlight this post!  
Unread 22-06-2011, 17:30
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Crio Not taking code

I am working with elliot and we have check our .out file. i have a theroy that one of the modules is hold to a program. Is that possible?
Reply With Quote
  #7   Spotlight this post!  
Unread 23-06-2011, 09:56
ElliotCourant's Avatar
ElliotCourant ElliotCourant is offline
Elliot Courant
AKA: Elliot Courant
FRC #3038 (ICE Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Minnesota
Posts: 19
ElliotCourant is an unknown quantity at this point
Re: Crio Not taking code

Okay but how would we make sure that the code from windriver is deploying to the right ip address, because whenever i reimage it my laptop says that there is no code in the driver station, but then when i deploy the code and reboot it says that there is code there. But the robot is not taking the code?
__________________
"Error, Cannot Find Back-End!" -WindRiver C++ Error
"If you aren't getting any errors while you are programming, then you are doing something wrong." -Elliot Courant
Reply With Quote
  #8   Spotlight this post!  
Unread 23-06-2011, 10:03
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,713
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: Crio Not taking code

What Alan meant was that one easy mistake to make is thinking you're downloading your new .out file whenever you push the Deploy button.
There are different .out files from each project.


That's only true if you remembered to select the newest one in:
Window->Preferences
FIRST Downloader Preferences
and check to see that the .out file selected is the latest one AND the directory is the right one.
I always double-check by looking at the .out file creation date in Windows Explorer to make sure it is the one being changed whenever you compile.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-06-2011 at 10:09.
Reply With Quote
  #9   Spotlight this post!  
Unread 23-06-2011, 14:05
ElliotCourant's Avatar
ElliotCourant ElliotCourant is offline
Elliot Courant
AKA: Elliot Courant
FRC #3038 (ICE Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Minnesota
Posts: 19
ElliotCourant is an unknown quantity at this point
Re: Crio Not taking code

It turned out that that was the problem but now we are having a different problem. It worked but then this happened. We deploy the code and it behaves like it transferred the file, but then when we go to the driver station and we reboot it it says that there is no code. we tried changing Crios and that didn't help. I also used ftp to browse the robot and I could not find the output file from windriver.
__________________
"Error, Cannot Find Back-End!" -WindRiver C++ Error
"If you aren't getting any errors while you are programming, then you are doing something wrong." -Elliot Courant
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 02:36.

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