Go to Post How you say something is often just as important as what you say. - Rachel Lim [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 04-04-2016, 23:34
bensen19r bensen19r is offline
Registered User
FRC #4125
 
Join Date: Feb 2016
Location: Oregon
Posts: 4
bensen19r is an unknown quantity at this point
Exclamation Programming Buttons

Hello there, I am here to request your help with a specific task with buttons. To start with, our buttons are booleans, and when i find it, I will post how they are declared/used etc. For now though, what I would like help with doing is
When I press a button, no matter how long I hold it, it will run the motor for a selected time.

To be more exact and say exactly what I'm doing, I want it so when our secondary driver presses and holds a button, it will intake the ball all the way(this is already done), then I want him to be able to press a button and have the boulder go down just the right amount(with testing it turned out to be .15 seconds at %80 power). Finally, he will press 1 more button and it will turn on the shooter(s)(Top and Bottom) at 100% power for about 2 seconds then intake the boulder for a short amount of time. What this does in simpler terms is intakes the boulder all the way, puts the boulder down to the right position, then revs up the shooter(s) before intaking the boulder to shoot it.
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:18.

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