View Single Post
  #3   Spotlight this post!  
Unread 25-01-2016, 13:09
techkid86's Avatar
techkid86 techkid86 is offline
Magic Programer
FRC #3044 (0xBE4)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: ballston spa
Posts: 58
techkid86 is an unknown quantity at this point
Re: Watchdog Not Fed

Burn watchdog. It has been the bane of my starting year as a programmer. In more cases than not, it has caused more issues than it protected us from. at times, it has somehow made the robot go full speed one direction, before disabling itself while sitting on the opposite alliance's goal.

if you are dead set on using watch dog, however, you need to feed it every so often. If you have any internal loops inside teleop periodic, (which is a bad idea to begin with) you should include a feed in them.

additionally, if you have any delay, you need to disable watchdog prior to it. Delay basically stops the system from proceeding, and thus the watchdog thread is not fed for what it interpret as an inordinate amount of time. EDIT: which it does appear you are doing.

speaking right out of my hat, java may find it problematic that you're trying to feed a dead, disabled watchdog, since it tries to feed it after killing it in auto-periodic.

When exactly does the watchdog complain?
__________________
"you can build a perfect machine out of imperfect parts" -Urza

Last edited by techkid86 : 25-01-2016 at 13:15.
Reply With Quote