View Single Post
  #1   Spotlight this post!  
Unread 27-02-2012, 17:49
touchdownjesus4's Avatar
touchdownjesus4 touchdownjesus4 is offline
Registered User
AKA: Tyler Vonderhaar
FRC #4028 (Eagle Robotics)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Cincinnati, OH
Posts: 64
touchdownjesus4 is on a distinguished road
Help Programming Autonomous

Hello all,

So first off I am using the command based robot template from WPI, and I need to create a command group that will be run during our autonomous period. We are just going to shoot the balls that are in our robot and that's it for autonomous, nothing complicated.

Basically what I need the robot to do is:
1) Begin running shooter motor (this will be running throughout autonomous)
2) Wait 3 seconds or so (for motor to spin up)
3) run our ball delivery motor for ~1.5 sec
4) stop ball delivery motor
5) Run conveyor motor to put 2nd ball in place
6) run ball delivery motor again
7) stop motors

I have commands written to do all of these functions, I just need a way to put them together into a command group with a delay in-between. Can anyone offer any guidance that has worked with the command based template?
Reply With Quote