|
Re: pic: auto code
This code will execute only once at the beginning of Autonomous. If TEST happens to be true the instant the robot is Enabled, then it will start the motor and quit. The motor will continue running forever.
You need to put a while loop around the outside of this (TEST needs to be inside the loop, too). Give it a Wait of 10ms or so as well.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : Yesterday at 19:12.
|