Go to Post I challenge the status quo - it's just me. - techhelpbb [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 24-02-2010, 13:43
masoug's Avatar
masoug masoug is offline
Food Consumer
FRC #0114
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Planet Earth
Posts: 78
masoug is an unknown quantity at this point
Exclamation Watchdog Not Fed!

Although this might seem like those classic "Watchdog" problems, this problem is special...

We use "Iterative Robot" system to program out robot, and we implemented things like solenoids, compressors, and camera, etc... When it got kinda complicated, the watchdog lost its appetite.

The robot boot fine, but whenever we enable it, the driver station immediately says "Watchdog Not Fed".

I don't think that the robot even initiated the Teleop Init function right... We fed the watchdog function plenty of times, but it still won't feed...
__________________

JabbaScript
Reply With Quote
  #2   Spotlight this post!  
Unread 24-02-2010, 13:54
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Watchdog Not Fed!

The most typical mistake is if you have a Wait somewhere in your code that is longer than the watchdog expiration. Wait is blocking. So while you are waiting, the watchdog starves. We don't use Wait in our code at all. We wrote our own timer callback using the Notifier class. We also implemented a state machine so that we do non-blocking wait using the timer callback to advance the state machine to the next state.
Reply With Quote
  #3   Spotlight this post!  
Unread 24-02-2010, 15:26
masoug's Avatar
masoug masoug is offline
Food Consumer
FRC #0114
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Planet Earth
Posts: 78
masoug is an unknown quantity at this point
Exclamation Re: Watchdog Not Fed!

We did not have any
Code:
Wait()
's either, but the thing is that the watchdog IMMEDIATELY does not get fed, so it is some problem with the initialization of our robot...

I think it might be the camera's
Code:
camera = AxisCamera::GetImage()
or something like that, OR it might be PID...

Has anyone ever have this problem before?
__________________

JabbaScript
Reply With Quote
  #4   Spotlight this post!  
Unread 24-02-2010, 17:03
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Watchdog Not Fed!

Are you disabling the watchdog during autonomous and during the constructor? The watchdog could be expiring before the teleop function sets it up properly
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #5   Spotlight this post!  
Unread 24-02-2010, 17:08
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Watchdog Not Fed!

I don't understand your code. Did you mean:
Code:
camera = AxisCamera::GetInstance();
or
HSLImage *image = camera.GetImage();
If it is really the first one, then it means the code failed to communicate with the camera. There are a number of reasons for that.
  • Make sure the ethernet cable is a cross over cable.
  • Make sure the camera is configured correctly with the correct IP address and acct/password
  • Although I haven't verified it myself other threads said the subnet mask of the camera should be 255.0.0.0.

Last edited by mikets : 24-02-2010 at 17:16.
Reply With Quote
  #6   Spotlight this post!  
Unread 24-02-2010, 19:59
mandrews281 mandrews281 is offline
Registered User
FRC #0281
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Greenville SC
Posts: 82
mandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to behold
Re: Watchdog Not Fed!

We had a similar problem. Discovered that the accelerometer was plugged into to the duplicate I2C _OUT_ ports. The accelerator initialization in the robot constructor was simply hanging, so our robot class never made it out of its constructor. So, as soon as the robot was enabled, the watchdog went hungry because our code hadn't started feeding it yet.

I guess the lesson from that is: make sure your code is getting to where you think it is, and check everything.
__________________
Michael Andrews
Team #281 Programming Mentor
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 not fed brianelite C/C++ 12 14-03-2010 14:43
Enabling yields one "Watchdog not fed" flash Dylan5019 Programming 4 12-02-2010 23:45
Autonomous Independent Code Issue Watchdog not fed pilum40 FRC Control System 0 11-02-2010 12:00
Watchdog Not Fed but, All Systems Are Go. DHSrobotics Java 4 24-01-2010 22:01
Watchdog not fed ahudson Programming 1 22-01-2010 11:26


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

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