PDA

View Full Version : Single button function execution


RonStoppable102
01-05-2007, 03:24 AM
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 (http://video.google.com/videoplay?docid=5523973120012722245) of the "HOTBot" and Pictures (http://picasaweb.google.com/computerwiz101/HOTBot)

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

Thanks!

Kingofl337
01-05-2007, 08:30 AM
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.

RonStoppable102
01-05-2007, 08:45 AM
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!