Go to Post Maybe if we build a giant wooden badger. - GaryVoshol [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 01-03-2009, 22:53
NC GEARS's Avatar
NC GEARS NC GEARS is offline
Registered User
AKA: David Carrier
FRC #1918 (NC GEARS)
Team Role: Alumni
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Newaygo, MI
Posts: 26
NC GEARS is an unknown quantity at this point
Watchdog!?!?!?!

Ok, so about 3-4 times during the match at Traverse City, MI we got this error on the driver station computer (the little blue box) Usually is says Disabled or Enabled, but those few times it said WATCHDOG. WHAT THE HECK IS WATCHDOG!?!?!?! We had to sit there the whole match til we learned how to do the remote reset from the computer during the match the last time it happened. So anyone have ANY info on this? I have no idea what it is, our programer doesnt either. help please! thanks
__________________
United States Coast Guard Academy
Class of 2014



Reply With Quote
  #2   Spotlight this post!  
Unread 01-03-2009, 22:57
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
Re: Watchdog!?!?!?!

I am not an expert on the watchdog, but what I do know is that you have to feed it, and feed it constantly. If the watchdog is not fed, the system is interrupted and you can't do anything. This is meant to observe a never-ending while loop and "hangs"

I am probably half wrong, so correct me. =] This is my learning experience, too.
__________________
For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, not of works, lest anyone should boast. -- Ephesians 2:8-9
2010: Quarter Finalist (MN 10,000 Lakes)
2010: Website Award (MN 10,000 Lakes)
2009: Quarter Finalist (MN 10,000 Lakes)
2009: GM Industrial Award (MN 10,000 Lakes)
Reply With Quote
  #3   Spotlight this post!  
Unread 01-03-2009, 23:02
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Watchdog!?!?!?!

Quote:
Originally Posted by keehun View Post
I am probably half wrong, so correct me. =] This is my learning experience, too.
Nope, you got it right.

As keehan indicated, The watchdog is a safety feature that fail-safes the robot by shutting down all actuators when it isn't happy. Keep it happy by feeding it at regular intervals. This protects you when code hangs.

One common watchdog source is putting slow camera code in your fast drive code.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-03-2009, 23:04
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Watchdog!?!?!?!

I have seen a similar issue on Team 2022's robot where their auton would cause the watchdog message. This was caused by their labview implemenation to tight-loop which prevented the watchdog from being fed. Basically your program should "feed" the watchdog periodically so that if your program does something bad and "hangs" it will fail to feed the watchdog thus causing a timeout which will halt your motors. Are you using labview or windriver?
Reply With Quote
  #5   Spotlight this post!  
Unread 01-03-2009, 23:12
NoahTheBoa's Avatar
NoahTheBoa NoahTheBoa is offline
Registered User
AKA: Noah Tomaszewski
FRC #0968 (RAWC)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2006
Location: Pomona
Posts: 95
NoahTheBoa has a spectacular aura aboutNoahTheBoa has a spectacular aura about
Send a message via AIM to NoahTheBoa
Re: Watchdog!?!?!?!

Quote:
Originally Posted by ozrien View Post
I have seen a similar issue on Team 2022's robot where their auton would cause the watchdog message. This was caused by their labview implemenation to tight-loop which prevented the watchdog from being fed. Basically your program should "feed" the watchdog periodically so that if your program does something bad and "hangs" it will fail to feed the watchdog thus causing a timeout which will halt your motors. Are you using labview or windriver?
We had several code issues at GSR and it didn't help that we traveled without a programmer. Our autonomous mode prevented the watchdog from getting fed, which basically resulted in our robot being disabled the rest of the match. It took us forever ti find the error since we had no programmer so we were stationary for 6 out of our 8 matches...
__________________
Team 968 (Mentor) 2011
Team 1138 (Mentor) 2010
Team 1138 (Student) 2005-2009
Reply With Quote
  #6   Spotlight this post!  
Unread 01-03-2009, 23:13
Hanna2325's Avatar
Hanna2325 Hanna2325 is offline
Programmer/Driver
AKA: Hannah
FRC #2177 (Robettes)
Team Role: Driver
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Minnesota
Posts: 85
Hanna2325 will become famous soon enoughHanna2325 will become famous soon enough
Send a message via AIM to Hanna2325
Re: Watchdog!?!?!?!

We had the same problem after getting our replacement drivers station in KC. The robot was working one second then no the next. Our head programmer was able to fix it, eventually, however - Its seemed like as soon as we realized this was an issue it wasnt the worst thing to fix it was just stunk that it had to flip out before we realized. Even though it counted against us still, the FIRSt ppl were helpful in explaining the problem
__________________
that light is NOT yellow, its orange! Where is the yellow light?
:1..2...3...BEAST!:

Last edited by Hanna2325 : 01-03-2009 at 23:16.
Reply With Quote
  #7   Spotlight this post!  
Unread 01-03-2009, 23:18
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: Watchdog!?!?!?!

Using printf (in C++ or any other print or file writing call) too frequently also causes the watchdog not to be fed in time. I suggest that any downloaded competition code have only a few infrequent print statements if any
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
Reply With Quote
  #8   Spotlight this post!  
Unread 01-03-2009, 23:24
Caroline2399 Caroline2399 is offline
Registered User
FRC #2399 (Team HB)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Cleveland, OH
Posts: 9
Caroline2399 will become famous soon enough
Re: Watchdog!?!?!?!

I think the Watchdog has to be fed about every 100 ms, otherwise it will timeout.
__________________
2399:

2009 Buckeye Regional: Delphi Driving Tomorrow's Technology Award winner
2009 Pittsburgh Regional: General Motors Industrial Design Award winner
2009 Pittsburgh Regional: Semi-Finalist (Thank you teams 2901 and 2614 for being absolutely AMAZING alliance partners!!!!)
Reply With Quote
  #9   Spotlight this post!  
Unread 02-03-2009, 00:00
Stuart's Avatar
Stuart Stuart is offline
#include coffee.h
FRC #1745 (P51- Mustangs)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Dallas, TX
Posts: 414
Stuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond repute
Send a message via AIM to Stuart
Re: Watchdog!?!?!?!

ok just to be proactive. ( I have not run in to this problem with our own robot or any other that Ive messed with, but then Murphy's law n such.)

if you take out all the delay and feeds in auto mode. and replace them with your own way of delaying, AND place a parallel 100ms feed loop, everything will be OK?
__________________
Proud mentor of Team #1745 the P-51 Mustangs

If at first it doesn't work, use a hammer.
If that doesn't work, use a bigger hammer.
Reply With Quote
  #10   Spotlight this post!  
Unread 02-03-2009, 00:39
Wayne TenBrink's Avatar
Wayne TenBrink Wayne TenBrink is offline
<< (2008 Game Piece)
FRC #1918 (NC Gears)
Team Role: Engineer
 
Join Date: Apr 2007
Rookie Year: 2006
Location: Fremont, MI, USA
Posts: 526
Wayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond repute
Re: Watchdog!?!?!?!

I'm not the programmer, and neither is the original poster, so please bear with our ignorance. Our programming mentor has about 2 months worth of experience with LabView.

When you all describe "feeding the watchdog", what actually does that? From your description, I assume that its some built-in, behind the scenes, function of the code that just happens without any special "instruction" from our programmer. And if the code is too busy or gets stuck in a "while" loop, it doesn't feed the watchdog.

What would make that happen only intermittently? It seemed to happen to us at one particular setup location. It isn't camera related, because we don't use it. We use 4 CIM's/4 Jaguars, a gyro, two limity switches, and 3 microswitches for setting autonomous patterns. Two of the match failures occurred at the start of the match, resulting in no autonomous motion, and nothing after it either (until we learned how to reset the cRio from the DS (thanks 494)). One of our failures occurred after a successful autonomous. I don't know for sure if we got the "watchdog" message that time, but one side of the drive train (Jaguar/CIM) didn't work after autonomous. After the match, we found no problems and the problem didn't repeat.

We would like to think it was field/system related, but we really don't know. If its a robot problem (short, programming issue, loose connection, improper connection, etc.) we would really like to know. Intermittent, random, stuff is scary and frustrating and we would like to do whatever we can to fix it (if is something under our own control).

Is there a credible scenario where static electricity could be involved? Doesn't seem like it to me since it happened at the start of the match. What about startup sequencing? I've read where some teams had communication problems when they powered up the robot before the DS. We generally powered up the DS first, but probably not always. I wouldn't think that would necessarily have anything to do with watchdog.

We generally like the new control system and LabView, but are anxious to find out where the bugs are hiding out and get rid of them.

Thanks for all your help so far in this thread.
Reply With Quote
  #11   Spotlight this post!  
Unread 02-03-2009, 00:44
big1boom big1boom is offline
Chains=Fun
FRC #2022 (Titan Robotics)
Team Role: Alumni
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Aurora
Posts: 267
big1boom is a glorious beacon of lightbig1boom is a glorious beacon of lightbig1boom is a glorious beacon of lightbig1boom is a glorious beacon of lightbig1boom is a glorious beacon of lightbig1boom is a glorious beacon of light
Re: Watchdog!?!?!?!

I don't do programming, but I am pretty sure that when Simbotics, ThunderChickens, and Bomb Squad helped us, they found that we had our code in an infinite loop among other problems.

I know that for two qualifying matches, we would put autonomous in and then have no control of drivebase for the rest of the match. However, when we tried to recreate this in the pit with a tether, we couldn't.
__________________
Reply With Quote
  #12   Spotlight this post!  
Unread 02-03-2009, 00:54
NoahTheBoa's Avatar
NoahTheBoa NoahTheBoa is offline
Registered User
AKA: Noah Tomaszewski
FRC #0968 (RAWC)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2006
Location: Pomona
Posts: 95
NoahTheBoa has a spectacular aura aboutNoahTheBoa has a spectacular aura about
Send a message via AIM to NoahTheBoa
Re: Watchdog!?!?!?!

Quote:
Originally Posted by big1boom View Post
I don't do programming, but I am pretty sure that when Simbotics, ThunderChickens, and Bomb Squad helped us, they found that we had our code in an infinite loop among other problems.

I know that for two qualifying matches, we would put autonomous in and then have no control of drivebase for the rest of the match. However, when we tried to recreate this in the pit with a tether, we couldn't.
The exact same thing happened to us, except it took us 6 matches to fix it. One of the mentors from 1831 (Chris) found an infinite loop in our drive code. When we took that out it worked.
__________________
Team 968 (Mentor) 2011
Team 1138 (Mentor) 2010
Team 1138 (Student) 2005-2009
Reply With Quote
  #13   Spotlight this post!  
Unread 02-03-2009, 00:57
Wayne TenBrink's Avatar
Wayne TenBrink Wayne TenBrink is offline
<< (2008 Game Piece)
FRC #1918 (NC Gears)
Team Role: Engineer
 
Join Date: Apr 2007
Rookie Year: 2006
Location: Fremont, MI, USA
Posts: 526
Wayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond reputeWayne TenBrink has a reputation beyond repute
Re: Watchdog!?!?!?!

Did your drive shut down before or after it moved in autonomous? Did the failures occur in your first two matches or was it intermittent? Did the autonomous work in testing before you hooked up to the field system? Did you get the "watchdog" message?

It doesn't make sense to me that code would generate intermittent hang ups. Our system worked fine before the failure, and then again after rebooting. That implies something outside the code is influencing the system.
Reply With Quote
  #14   Spotlight this post!  
Unread 02-03-2009, 01:01
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Watchdog!?!?!?!

Quote:
Originally Posted by Wayne TenBrink View Post
Did your drive shut down before or after it moved in autonomous? Did the failures occur in your first two matches or was it intermittent? Did the autonomous work in testing before you hooked up to the field system? Did you get the "watchdog" message?

It doesn't make sense to me that code would generate intermittent hang ups. Our system worked fine before the failure, and then again after rebooting. That implies something outside the code is influencing the system.
As far as I know it is not possible for the field to cause a Watchdog error.
EDIT: It sounds like, based on the document that StephenB linked to that communication problems could potentially cause the system Watchdog to time out.

Depending on the structure of your code it may be possible that one specific case somewhere or one value for a sensor or variable causes a hang that times out the User Watchdog. The robot gets cycled through a specific set of modes on the competition field that may not be the same as what is happening when you are testing on the practice field.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)

Last edited by Vikesrock : 02-03-2009 at 01:12.
Reply With Quote
  #15   Spotlight this post!  
Unread 02-03-2009, 01:02
StephenB StephenB is offline
Registered User
no team (Team NI)
 
Join Date: Feb 2009
Rookie Year: 2003
Location: Austin
Posts: 11
StephenB will become famous soon enough
Re: Watchdog!?!?!?!

There has been quite a bit of misinformation posted so far about this topic so I thought I'd try to clear it up: http://decibel.ni.com/content/docs/DOC-2957

Main thing is, there are two watchdogs. One you shouldn't ever worry about, and the other you should only worry about if you want to (it is optional and configurable)

Check out the doc, let me know if I can clear anything up.

Last edited by StephenB : 02-03-2009 at 01:03. Reason: grammar
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
WatchDog Timeout popo308 Programming 3 22-02-2009 22:04
Watchdog darty NI LabVIEW 8 16-02-2009 09:11
System: Watchdog problems dboisvert C/C++ 7 16-02-2009 02:36
System: Watchdog problems dboisvert C/C++ 1 15-02-2009 20:12
Watchdog Barchechath Programming 6 10-02-2007 20:05


All times are GMT -5. The time now is 16: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