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.
|
Adding a concurrent "second while loop" separate from the "main loop" which does nothing but feed the watchdog defeats the purpose of the watchdog. The watchdog is not protecting your "main loop".
Quote:
Originally Posted by Austin3324
(The reason it has to be separate is because the main loop will only run anywhere from 1-3 times before it exits.)
|
Are you getting watchdog errors in the auto independent state only after your "main loop" exits but before the state changes to TeleOp? If so, add a watchdog delay and feed after the main loop exits, to keep the watchdog fed until the state changes to TeleOp.
Or, are you getting watchdog errors while your "main loop" is running? If so, you probably have delays in your "main loop" code which are not feeding the watchdog.
~