Thread: Watchdog Idea
View Single Post
  #2   Spotlight this post!  
Unread 26-03-2010, 11:23
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Watchdog Idea

Take the compressor stuff out of Periodic Tasks. A Compressor Open and a Compressor Start in Begin is all that is necessary. The code will take care of everything for you behind the scenes.

If you're going to feed the watchdog in a separate continuous loop, you have removed its usefulness and you might as well just disable it at the beginning.

Watchdog errors are trying to tell you that your code is taking too long to do what you're asking it to do. Instead of figuring out ways to ignore the problem, it's better to figure out what's causing them and correct the problem.