![]() |
Watchdog Not Fed
1 Attachment(s)
Ok, so we're basically recoding our bot from last year
For some reason, our watchdog is not being fed Here is the java code: Code:
package edu.wpi.first.wpilibj.templates; |
Re: Watchdog Not Fed
Disable your watchdog. Don't use it. Don't implement it. The watchdog is not the way you should keep your robot safe.
|
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? |
Re: Watchdog Not Fed
This thread is from 2010. The WPILib is completely different now.
|
Re: Watchdog Not Fed
Thats rather funny. I didn't even notice the date :P
|
Re: Watchdog Not Fed
![]() |
| All times are GMT -5. The time now is 10:18. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi