View Single Post
  #1   Spotlight this post!  
Unread 01-02-2014, 20:33
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,833
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: Coding in a sequence.

I wouldn't put the sequence you describe into Teleop.
It'd be easier on you to put a sequence like you describe into Periodic Tasks.

So, your sequence can be thought of as these discrete frames:
  1. Retract solenoid; Wait 500ms (half a second to give the retraction time to complete)
  2. Set Winch motor to speed (1.0); Wait 3000ms (or however long it takes the winch to do it's work)
  3. Set Winch Motor to 0 speed
  4. When does the solenoid get extended to complete the cycle?
Here's an example of something similar:
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote