Go to Post They have obviously figuered out something special. I want to learn from them. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:54.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi