Quote:
Originally Posted by Austin3324
We currently have watchdog working fine in our Teleop vi and it's just been a problem with getting watchdog to work in the Autonomous Independent vi. The way I see it is to throw in a second while loop, separate from the main loop, and just tell that to feed the watchdog something like every 20 ms. (The reason it has to be separate is because the main loop will only run anywhere from 1-3 times before it exits.)
|
Sorry I haven't responded directly to your question till now.
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.
A Delay & Feed in a loop or sequence frame like you're using does the action of a timer delay, so you can actually replace the timer delay with the Delay & Feed to get the same result.
The rest of the sequence code operates fast enough that you don't need Watchdog feeds everywhere. Placing Feeds wherever you take a lot of time will satisfy the rest of the sequence as well.