View Single Post
  #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