|
Re: Autonomous limit switch
Autonomous Independent is not run 50 times a second like Teleop is.
You'll need to add a While or For loop around your switch checks and motor set, so that the code keeps checking for them.
What's the deal with that Time Delay inside the For loop at the start?
It basically waits 2 seconds, then waits two seconds again, then picks .6 for a motor speed, sets the motor then that's it.
So the shooter motor and the feeder motor are left running until Teleop takes over.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 12-03-2013 at 21:54.
|