OCCRA
Go to Post Competitive games are won by point differentials, not by point potentials. - JesseK [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-05-2007, 03:24 AM
RonStoppable102 RonStoppable102 is offline
Registered User
AKA: Ron
None #1098 (GI's)
Team Role: College Student
 
Join Date: Dec 2004
Rookie Year: 2002
Location: St. Louis, MO
Posts: 7
RonStoppable102 is an unknown quantity at this point
Send a message via AIM to RonStoppable102
Single button function execution

Hey all. Let me first clairify, I've searched for this to the best of my knowledge...

I have a VEX flamethrower robot, currently I have channel 5 set to light my butane pilot light, and channel 6 to spray ether into the flame. I would like to be able to use only one channel to do this (i.e. channel 6 down would light the flame, up would spray), but naturally I can't hold both buttons at once with the code I have, since it just negates everything.

Make sense?

My question: Can I just make the four buttons on the back of the controller act totally independent of each other, so they can run different functions (simultaneously)?

Oh, by the way, Video of the "HOTBot" and Pictures

As always, help is appreciated, I realize with the kickoff looming, everyone is going nuts (as am I!)

Thanks!
  #2   Spotlight this post!  
Unread 01-05-2007, 08:30 AM
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Single button function execution

Why don't you use a delay?
Have it light the lighter then wait 500ms and then start spraying.
When you release you can have them shut everything down together.

Cool Robot.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #3   Spotlight this post!  
Unread 01-05-2007, 08:45 AM
RonStoppable102 RonStoppable102 is offline
Registered User
AKA: Ron
None #1098 (GI's)
Team Role: College Student
 
Join Date: Dec 2004
Rookie Year: 2002
Location: St. Louis, MO
Posts: 7
RonStoppable102 is an unknown quantity at this point
Send a message via AIM to RonStoppable102
Re: Single button function execution

Younno, not a bad idea. I need to get a light sensor (or thermocouple) in place to check and make sure that the lighter is on before fuel gets sprayed.

Thanks for the idea.

Edit: Thanks, Glad you like it!
__________________
University of Missouri - Rolla

Computer Engineering
Mechanical Engineering
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Processor Execution Time Andrew Blair Programming 1 02-12-2006 08:52 PM
Loop execution time for Autonomous code Transporter08 Programming 2 02-13-2005 03:17 PM
Remote Program Execution in Visual Basic Jeff Waegelin Programming 6 06-14-2004 08:15 PM
How to measure execution time? And code size? gnormhurst Programming 17 02-17-2004 07:06 AM
Actual execution time measurement Dan Technical Discussion 5 03-24-2003 10:36 AM


All times are GMT -5. The time now is 11:36 AM.

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


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