View Single Post
  #2   Spotlight this post!  
Unread 21-01-2013, 14:42
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: One Motor Autonomou

For a timed action you can put the code in Periodic Tasks.vi.
With a state-machine you could put code in Teleop.vi
There are lots of different ways to do something like this.

Here's an example that could be used in Teleop.vi
You'd add your Set Motor in the True case, and add another case outside to the right that used Time to do it? as a flag to stop the motor.



This example for Periodic Tasks.vi would just need the two sequence frames that do the Motor sets to start, then stop the motor.
Ignore the Servo stuff. They were demonstrating extra actions.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-01-2013 at 14:55.
Reply With Quote