|
Re: Encoder in Autonomous
Is this the code you dropped into Autonomous?
Did you add a loop (with a Wait please)? Otherwise it gets called a single time, then never again in Autonomous.
Without an Autonomous loop your Arm will just keep running forever.
Teleop itself gets called every 20ms (optimally), so this code in Teleop gets called over and over again.
Autonomous is called only once, and you have to supply your own loops to keep it going and checking.
I'd also call Config Timer once in Begin, rather than every time you get an encoder value.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 30-01-2015 at 19:09.
|