View Single Post
  #1   Spotlight this post!  
Unread 16-01-2014, 22:35
joecloud joecloud is offline
Registered User
FRC #2805
Team Role: Programmer
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Texas
Posts: 22
joecloud is an unknown quantity at this point
Teleop move motor forward and backwards timed

My goal is that when button 7 is pressed, that the motor will move forward at full speed for 1 second, then stop. wait .5 seconds, then move in reverse at half speed for 1.5 seconds. I just wanted to get some feedback on the code and what I could do to make it less cluttered, and possibly more effective (I haven't had a chance to upload it to the bot yet, I will Saturday. )

Click image for larger version

Name:	teleop.PNG
Views:	66
Size:	20.5 KB
ID:	15851

Button 7 is supposed to toggle on/off and start the sequence structure, am I doing it right?
Thanks!

Also, build team mentioned that they're going to throw another motor on the gearbox that this motor is currently on, so 2 motors will be working together for more power!
I was wondering what would be the best way to add a second motor to the sequence? Should I set up an 'Open2Motor' so that they only need one block? Or should I just add the 2nd motor to the case structure (Have separate motor get for the 2 motors)?

Thanks a ton,
__________________
--
Joe,
Programming: Team #2805

Last edited by joecloud : 16-01-2014 at 22:50.
Reply With Quote