View Single Post
  #2   Spotlight this post!  
Unread 12-03-2013, 21:51
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
Reply With Quote