View Single Post
  #3   Spotlight this post!  
Unread 12-02-2010, 14:47
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 Problem

Quote:
Originally Posted by daniel_3158 View Post
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.