Thread: Basic Framework
View Single Post
  #11   Spotlight this post!  
Unread 26-02-2009, 00:58
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Basic Framework

The watchdog adds a safety element to the outputs on the robot. The watchdog you are feeding, referred to as the user watchdog should be fed in the code that updates the motor speeds. That way if that code stops running for some reason -- logic error, breakpoint, infinite loop, etc. -- then the motors will turn off if not fed in 0.5 sec rather than keeping their old values and probably running into the desk/wall/person.

Greg McKaskle
Reply With Quote