View Single Post
  #2   Spotlight this post!  
Unread 19-02-2013, 16:27
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: Have motor run for X amount of time

This is a timed sequence of actions, just ignore the servo examples.
Your sequence would be
  1. set motor to 1,
  2. wait x milliseconds,
  3. set motor to zero,
  4. wait 1000 ms,
  5. set motor to -1,
  6. wait X miliseconds,
  7. set motor to 0.
This drops into Periodic Tasks.vi NOT Teleop.vi

__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 19-02-2013 at 16:30.
Reply With Quote