Go to Post Build tough and come to play. - JaneYoung [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 15-03-2004, 20:17
Anthony Kesich's Avatar
Anthony Kesich Anthony Kesich is offline
Programmer Turned Engineer
AKA: SonKenshin
#1097 (Site 3 Engineernig)
Team Role: Leadership
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Sacramento, CA
Posts: 186
Anthony Kesich has a spectacular aura aboutAnthony Kesich has a spectacular aura about
Send a message via AIM to Anthony Kesich
Mes amis, i beg thee for assistance

Here's how it rolls: I have been working franticly on autonomous for the past 3 weeks and am still having no luck. I adapted the code to use 6 sensors with 4 servos, but whenever i load i get different errors (ie, flashing program light, or ram dump, or red program light, or red/green/red/green/... program light, etc.) Ive just about given up, so ive zipped my code and i am beggina anyone who can to check it out and see if they can find the error. i think it is either in tracker.c, navigate.c, user routines.c, or thier respective headers. Thank you so much.

-Kesich
Attached Files
File Type: zip 1097 Code.zip (20.0 KB, 26 views)
__________________
C is screwing up my English--I'm ending all my sentences in semi-colons;

Horray for most things! -George Carlin

"Sure, I'll play rugby. Besides, I have a lot of experience running from really big guys who want to cream me." -Me, Freshman year
  #2   Spotlight this post!  
Unread 15-03-2004, 21:05
jacob_dilles's Avatar
jacob_dilles jacob_dilles is offline
Registered User
AKA: theshadow
FRC #0620 (WarBots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Vienna, VA
Posts: 245
jacob_dilles will become famous soon enough
Send a message via AIM to jacob_dilles
Re: Mes amis, i beg thee for assistance

we had a BUNCH of the same stuff. your code is fine (i take the liberty to say that though i have not looked thrugh it) but it is too big. if you get the ram dump/program light make the program smaller. do a search, for example take out all the printF statements and uninclude the libray. also, take out unesseary IF statements, or turn repeated code into a loop.
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
  #3   Spotlight this post!  
Unread 15-03-2004, 22:22
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Mes amis, i beg thee for assistance

Quote:
Originally Posted by Anthony Kesich
Here's how it rolls: I have been working franticly on autonomous for the past 3 weeks and am still having no luck. I adapted the code to use 6 sensors with 4 servos, but whenever i load i get different errors (ie, flashing program light, or ram dump, or red program light, or red/green/red/green/... program light, etc.) Ive just about given up, so ive zipped my code and i am beggina anyone who can to check it out and see if they can find the error. i think it is either in tracker.c, navigate.c, user routines.c, or thier respective headers. Thank you so much.

-Kesich
Anthony,

Can you please send me the .lst and .map files? To create the .map file, do this: Project -> Build Options... -> Project -> MPLINK Linker -> Check "Generate map file" and then perform a "Build All".

BTW, who're Bob and Pete ?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #4   Spotlight this post!  
Unread 16-03-2004, 01:20
Anthony Kesich's Avatar
Anthony Kesich Anthony Kesich is offline
Programmer Turned Engineer
AKA: SonKenshin
#1097 (Site 3 Engineernig)
Team Role: Leadership
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Sacramento, CA
Posts: 186
Anthony Kesich has a spectacular aura aboutAnthony Kesich has a spectacular aura about
Send a message via AIM to Anthony Kesich
Re: Mes amis, i beg thee for assistance

Names I randomly chose. I've always liked the name Bob--short and simple, and when i came to it and needed another temp variable i asked the nearest person and he said "Pete." Anyways here's the map file and i have one other tidbit of information for you. When i run the defualt tracker code i get the yellow blinking program state light, but it disaplys the printf statements but does not move the servo. When i reset, the light turns green, but no amount of coercing can make it do anything. Also, the default navigate code results in a red program led (i.e. runtime error of some sort). This may be of some help. And thank you so much Kevin.

-Kesich

P.S. I've been, um, informed, that one of our Frosh dropped the CPU a while back (his execution date is still being decided, I'm voting for the opening ceremonies of Sacto). I'm wondering if this could be an intermittent error due to a loose wire or connection of some sort.
Attached Files
File Type: zip navigate map.zip (12.9 KB, 19 views)
__________________
C is screwing up my English--I'm ending all my sentences in semi-colons;

Horray for most things! -George Carlin

"Sure, I'll play rugby. Besides, I have a lot of experience running from really big guys who want to cream me." -Me, Freshman year

Last edited by Anthony Kesich : 16-03-2004 at 01:26.
  #5   Spotlight this post!  
Unread 16-03-2004, 01:59
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Mes amis, i beg thee for assistance

Hmmm... The fact that you can't run the tracker code (from frc_tracker.zip, right?) would seem to indicate that the RC was messed-up. Please send me your entire build directory, or at the very least, your navigate.hex file. I'll load it into a known good RC and get back to you. My e-mail address is kevinw@jpl.nasa.gov.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #6   Spotlight this post!  
Unread 16-03-2004, 10:35
10intheCrunch's Avatar
10intheCrunch 10intheCrunch is offline
Who's John V-Neun?
AKA: Alex Baxter
None #0254 (Cheesy Poofs)
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2004
Location: San Jose, CA
Posts: 129
10intheCrunch is a jewel in the rough10intheCrunch is a jewel in the rough10intheCrunch is a jewel in the rough10intheCrunch is a jewel in the rough
Send a message via AIM to 10intheCrunch
Re: Mes amis, i beg thee for assistance

Well from your map, your code is definately not "too big." You're only at 55% usage right now (just be careful in the future). Further, the compiler will tell you if you overflow, anyway.

The problem you describe sounds slightly similar to one we had a while ago, so take a look for this: We found that having any printf() statements before initialization caused the robot to go pretty much completely dead, with a red/green/red/green light, and it took us forever to find out the problem. As a precaution, make sure that no functions that need to be initialized are called before they are, as it can really mess you up.

Other than that, I can't give you any good advice right now , except make sure you don't have any infinite loops and no unhandled interrupts, as those can cause the red program light. Will try and read your code more in depth later today.
__________________
~Alex Baxter
Programming, Arms operation, Team 254
  #7   Spotlight this post!  
Unread 16-03-2004, 13:50
Anthony Kesich's Avatar
Anthony Kesich Anthony Kesich is offline
Programmer Turned Engineer
AKA: SonKenshin
#1097 (Site 3 Engineernig)
Team Role: Leadership
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Sacramento, CA
Posts: 186
Anthony Kesich has a spectacular aura aboutAnthony Kesich has a spectacular aura about
Send a message via AIM to Anthony Kesich
Re: Mes amis, i beg thee for assistance

Thanks Mr. Kevin. I'll be home later tonight and will be able to send you the code then. Thanks again.

-Kesich
__________________
C is screwing up my English--I'm ending all my sentences in semi-colons;

Horray for most things! -George Carlin

"Sure, I'll play rugby. Besides, I have a lot of experience running from really big guys who want to cream me." -Me, Freshman year
  #8   Spotlight this post!  
Unread 16-03-2004, 13:39
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Mes amis, i beg thee for assistance

Quote:
Originally Posted by Anthony Kesich
Names I randomly chose. I've always liked the name Bob--short and simple, and when i came to it and needed another temp variable i asked the nearest person and he said "Pete." Anyways here's the map file and i have one other tidbit of information for you. When i run the defualt tracker code i get the yellow blinking program state light, but it disaplys the printf statements but does not move the servo. When i reset, the light turns green, but no amount of coercing can make it do anything. Also, the default navigate code results in a red program led (i.e. runtime error of some sort). This may be of some help. And thank you so much Kevin.

-Kesich

P.S. I've been, um, informed, that one of our Frosh dropped the CPU a while back (his execution date is still being decided, I'm voting for the opening ceremonies of Sacto). I'm wondering if this could be an intermittent error due to a loose wire or connection of some sort.
That is one of the oddest naming habits I've heard of, but makes some sense.
  #9   Spotlight this post!  
Unread 16-03-2004, 13:41
JBabbie's Avatar
JBabbie JBabbie is offline
Registered User
#0201
 
Join Date: Mar 2004
Location: Michigan
Posts: 10
JBabbie is on a distinguished road
Re: Mes amis, i beg thee for assistance

have you updated the firmware ?
__________________
SCREAMTEAM-CLICKY!
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 12:48.

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