Go to Post Meh, wear safety glasses. - Mike Schreiber [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 30-01-2006, 15:39
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Code Errors With "Bells and Whistles"

I rewrote the tracking code to track both ways. The C18 compile compiles it cleanly, and it loads with out a problem. The only problem is that after a second, I get a blinking red light on the robot indicatinga code error. I reset the bot and got the following on the Com1 output screen:

"
<IFI>
Camera: Initialization state = 1
Camera: Configuring with EEPROM data
Tracking: Configuring with EEPROM data
"

I have break statements included in my code, if thatmakes a difference.

Did I just leave out a nessacary code line or something? The only rountine I changed was the Servo_Track() routine. Any help would be great.
  #2   Spotlight this post!  
Unread 30-01-2006, 22:06
Eldarion's Avatar
Eldarion Eldarion is offline
Electrical Engineer / Computer Geek
AKA: Eldarion Telcontar
no team (Teamless Orphan)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Númenor
Posts: 558
Eldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond repute
Send a message via AIM to Eldarion Send a message via Yahoo to Eldarion
Re: Code Errors With "Bells and Whistles"

Quote:
Originally Posted by Ryan O
I rewrote the tracking code to track both ways. The C18 compile compiles it cleanly, and it loads with out a problem. The only problem is that after a second, I get a blinking red light on the robot indicatinga code error. I reset the bot and got the following on the Com1 output screen:

"
<IFI>
Camera: Initialization state = 1
Camera: Configuring with EEPROM data
Tracking: Configuring with EEPROM data
"

I have break statements included in my code, if thatmakes a difference.

Did I just leave out a nessacary code line or something? The only rountine I changed was the Servo_Track() routine. Any help would be great.
Did you fiddle with anything that could possibly be related to an interrupt service routine?
I had the identical problem with my code (not Kevins), caused by not handling the low-priority ISR.
__________________
CMUCam not working? Tracks sporadically? Try this instead: http://www.falconir.com!
PM me for more information if you are interested (it's open source!).

Want the FIRST Email blasts? See here: http://www.chiefdelphi.com/forums/sh...ad.php?t=50809

"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine

If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.

"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous

I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL
  #3   Spotlight this post!  
Unread 31-01-2006, 19:29
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: Code Errors With "Bells and Whistles"

Quote:
Originally Posted by Eldarion
Did you fiddle with anything that could possibly be related to an interrupt service routine?
I had the identical problem with my code (not Kevins), caused by not handling the low-priority ISR.

No, all I edited was Servo_Tracking(). No intailization rountines or anything. Did I forget a sub call or something?

PS. I'm new at delphi this year and don't know what you meen by "good reputation". Are just asking me to tell others about yo or am I supposed to give you a good rating somewhere? Eliminating possiblibilities is always helpful.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07


All times are GMT -5. The time now is 11:04.

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