Thread: WATCHDOG!!
View Single Post
  #1   Spotlight this post!  
Unread 01-11-2010, 15:46
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 krudeboy51 View Post
I did, but set turned on because when ever our robot kicks, and I recharge it while driving, it will go out of control untill the robot is fully charge, so if we were going forward the robot will keep going forward until the kicker is fully recharged. so I am wondering if it has to do with the fact that the watchdog is disabled
It sounds like the code that recharges your kicker is "blocking" - that is, it takes control and doesn't let other code execute while it is busy. You need to rewrite your kicker recharger so that it doesn't do this.

I'm guessing that when you first wrote the recharger, the watchdog would immediately trip and shutdown the robot... so you disabled it. Now you have unsafe robot!

Whenever you disable the watchdog because it finds an error, you are just giving yourself an extra problem and making the original error worse. I have yet to see an error where disabling the watchdog was the correct decision.
Reply With Quote