Go to Post To limit FIRST to robots, tools, and competition is to strip away its immense potential. - Madison [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 13-02-2007, 15:19
rfolea's Avatar
rfolea rfolea is offline
Registered User
AKA: Rick Folea
no team (Forsyth Alliance)
Team Role: Mentor
 
Join Date: May 2005
Rookie Year: 2005
Location: US
Posts: 212
rfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant future
Encoder Death

We installed Kevin's encoder routines per the nine-step encoder.txt file directly into the 2007 default code base.

It all seems to work great with one exception:

20 seconds after power up the processor goes belly up (red blinking light of death + disable light).

Pressing reset fixes it and we are on our way.

Any ideas what is going on?

We have started completely over 3 times with different folks doing the 9 steps just to make sure we didn't miss anything. Still death after about 20 seconds.

Removing the Encoder code fixes the problem.

Any ideas? I'm stumped....
  #2   Spotlight this post!  
Unread 13-02-2007, 15:39
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,705
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Encoder Death

Question: Does everything work properly in the 20 seconds before everything goes belly up? If everything's working, it would be odd for the watchdog timer to time out like that.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #3   Spotlight this post!  
Unread 13-02-2007, 16:07
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: Encoder Death

Which encoder are you using and how many?

What else is in your code? camera? gyros?

What code modifications have you made?

Does it work with the default encoder code?

You might be overloading the processor, and there might be a way to fix that.
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #4   Spotlight this post!  
Unread 13-02-2007, 16:10
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Encoder Death

Probably a problem with the interrupts. Can you post your workspace in .zip form?
  #5   Spotlight this post!  
Unread 13-02-2007, 18:31
rfolea's Avatar
rfolea rfolea is offline
Registered User
AKA: Rick Folea
no team (Forsyth Alliance)
Team Role: Mentor
 
Join Date: May 2005
Rookie Year: 2005
Location: US
Posts: 212
rfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant future
Re: Encoder Death

Hi Guys,

We have literally taken the 2007 default code, added Kevin's encoder code per the instructions.

That's it - nothing else has been added and we still see the fault.

Wheels are still the entire time (they have the Banebots encoders on them) we don't touch anything on the OI.

Everything works fine before the fault.

Everything works fine if we reset the fault by pressing the pushbutton.

I have another processor - I think I'll try the software on that.
I'll also try removing all wires and see if the problem persists.

It's as if a watchdog timeout is wrong, and it has more time to timeout after powerup than other times so it fails.

Weird ...
  #6   Spotlight this post!  
Unread 13-02-2007, 20:26
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: Encoder Death

Quote:
Originally Posted by rfolea View Post
Hi Guys,

We have literally taken the 2007 default code, added Kevin's encoder code per the instructions.

That's it - nothing else has been added and we still see the fault.

Wheels are still the entire time (they have the Banebots encoders on them) we don't touch anything on the OI.

Everything works fine before the fault.

Everything works fine if we reset the fault by pressing the pushbutton.

I have another processor - I think I'll try the software on that.
I'll also try removing all wires and see if the problem persists.

It's as if a watchdog timeout is wrong, and it has more time to timeout after powerup than other times so it fails.

Weird ...
What happens if you just upload the pre-built .hex file included in frc_encoder.zip?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #7   Spotlight this post!  
Unread 14-02-2007, 09:46
rfolea's Avatar
rfolea rfolea is offline
Registered User
AKA: Rick Folea
no team (Forsyth Alliance)
Team Role: Mentor
 
Join Date: May 2005
Rookie Year: 2005
Location: US
Posts: 212
rfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant future
Re: Encoder Death

Crud ... why didn't I think of that ...

Just tried it - That file works fine - which means it is not a hardware issue - it is a code issue.

Time to go through line by line and comapre the two ....

The odd thing is, the death issue only occurs if the modem is plugged in. It's like the OI says "I haven't heard from you in a while so I'm shutting you down."

Yet if we reset everything works fine.
  #8   Spotlight this post!  
Unread 14-02-2007, 11:36
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Encoder Death

Sounds like a problem with the interrupt handler in user_routines_fast.c I had some similar problems in previous years, and it was because I had problems with my handler. Make sure to carefully read all of the information in those lovely help files that Kevin includes with his code. I just recently found a perpetual bug by reading Kevin's documentation carefully.

Good Luck!
  #9   Spotlight this post!  
Unread 14-02-2007, 14:06
rfolea's Avatar
rfolea rfolea is offline
Registered User
AKA: Rick Folea
no team (Forsyth Alliance)
Team Role: Mentor
 
Join Date: May 2005
Rookie Year: 2005
Location: US
Posts: 212
rfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant future
Re: Encoder Death

ISSUE RESOLVED.

The kids incorporated the encoder code, but didn't incorporate the non-blocking serial code.

That would probably be ok, except they blindly copied the user_routines_fast over which confused everything and didn't take into account the old serial driver.

We simply added the non-blocking serial port code, commented out the serial call back at the bottom of the user_routine_fast and everything is working now.

Thanks to everyone for your help (and special thanks to Kevin for his wonderful frc code base!)
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
Blue Screen of Death Schnabel Chit-Chat 24 20-11-2006 18:17
The Death of FIRST Anton Abaya General Forum 23 03-05-2006 17:18
Death of Robot team222badbrad General Forum 13 23-05-2002 11:39


All times are GMT -5. The time now is 23:02.

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