Thread: Commands
View Single Post
  #5   Spotlight this post!  
Unread 05-02-2007, 15:32
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Commands

Quote:
Originally Posted by Barchechath View Post
We are using the same switch of the joystick to do two jobs.
I some need kind of delay because when i press the button once the robot doing the open and close command too fast.
A couple of possible variations come to mind.

1) You can program the joystick button to act one way when you hold it down and do the opposite when you let it go.
For instance, close when you hold the button and open only when you release the button.

2) You can program the button to toggle so you have to push it and let go each time you want it to do something.
For instance, push once and let go for close, then push once again to open.

Either of these fit what you are trying to do?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-02-2007 at 15:40.