View Single Post
  #12   Spotlight this post!  
Unread 04-04-2010, 13:18
Austin3324 Austin3324 is offline
Lead Programmer Team 3324
FRC #3324 (Metrobots)
Team Role: Programmer
 
Join Date: Apr 2010
Rookie Year: 2008
Location: Columbus, Ohio
Posts: 10
Austin3324 is an unknown quantity at this point
Re: Feeding the Watchdog in "Periodic Tasks"

Quote:
Originally Posted by Mark McLeod View Post
I've had a chance to look at your auto code and you need Watchdog Feeds in each of those interior While loops where you wait around for the Ball Sensor to trip or the Kicker Limit Switch to say you've completed your kick. You also need a Watchdog Delay & Feed wherever you do a timer wait, e.g., the one for 100ms.

In fact you probably should throw delays into each of those interior While loops to free up the CPU a bit to allow parallel tasks (such as the Watchdog) time to execute too. That'd mean doing Delay & Feeds rather than Feeds there.
Thanks Mark.

I hope that this all works. I should be able to test it out on the robot in a few days so I'll definitely keep you all posted if there are any errors. Also, as a final check, here's a copy of the revised vi. (I took your advice in using Delay and Feeds as opposed to just Feeds.)

Again, thanks for the help and hopefully all will work well!

Austin
Attached Files
File Type: vi Autonomous Independent.vi (23.9 KB, 8 views)
Reply With Quote