Log in

View Full Version : Watchdog Problem


daniel_3158
12-02-2010, 14:24
Hi Everyone!

Im from team 3158, we'/re a rookie team, I wanted to ask you why when I run the Autonomous Independent mode I have a message on the DS, that says "Watchdog not Feed", I have tried the Autonomous Iterative mode and have the same problem. The thing is when I erase all of the pre-establish code it works. I also wanted to know why in the Independent code, there's a delay and Feed block and why in the Iterative code theres only a Feed Block?


Thanks a lot!! Regards from Mexico!!:)

Mark McLeod
12-02-2010, 14:37
The Autonomous Independent code shuts itself down if it cannot see the target right away. When it shuts down you get the Watchdog msg.

Independent uses Delay & Feed, because once control enters the While loop it can stay there for awhile and the Wathchdog needs to be delayed so it doesn't expire and stop everything.

Iterative only needs Feed, because it executes just once and then leaves. It gets called over and over again and will feed the Watchdog each time while Independent only gets called one time.

Alan Anderson
12-02-2010, 14:47
I also wanted to know why in the Independent code, there's a delay and Feed block and why in the Iterative code theres only a Feed Block?

Autonomous Independent runs as a separate, self-contained task. If you want to include delays, Delay and Feed is the way to keep the watchdog happy.

Autonomous Iterative gets called 50 times a second. It should not include long-running loops or intentional delays. It should do its thing quickly and finish, ready to run again a moment later. In order to sequence actions with specific timing, you need something like a state machine and timers that can be started and tested to see when they elapse.

daniel_3158
12-02-2010, 15:22
Thanks