View Single Post
  #1   Spotlight this post!  
Unread 25-02-2004, 13:01
BobcatProgramer BobcatProgramer is offline
Registered User
AKA: Brian
FRC #0758 (Roboticats)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2002
Location: University of Western Ontario
Posts: 12
BobcatProgramer is an unknown quantity at this point
Send a message via MSN to BobcatProgramer
Question Button Programing

I have a relay programed to a button but now I want it to be a press to be forward and then press again to reverse. For example, I am using a selanoid and i want to press the button to have the cylinder go out then the next time i press it the cylinder go in. I can do this easilly in p-basic but I have tried to do it in C and I can't get it to work right. Could anyone give me a hand with this by posting code. It would be appreciated. Thanks