View Single Post
  #3   Spotlight this post!  
Unread 27-01-2009, 13:40
programmr's Avatar
programmr programmr is offline
Registered User
AKA: Face
FRC #0522
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Staten Island, NY
Posts: 83
programmr is a jewel in the roughprogrammr is a jewel in the roughprogrammr is a jewel in the rough
Send a message via AIM to programmr
Exclamation Re: Please help Program Relays in WindRiver....

ok, let's just say, if you push button 2, that will turn the motor on relay 1 on forward direction. when they push it again, it will turn it off.


also let's say button 3 is pushed, when they hold it down, it moves the motor relay 2 in the forward direction. otherwise, it doesnt move at all.


How would i do these two things? Please help, thank you.

Also, that fiel i attached is the current file i have for what ive worked on so far. please feel free to add to it or just post what i can add to make the two thing above work. Thank You again. I know for a button its
if (leftStick->GetRawButton(1)) { , but thats all i know.
__________________
"I would love to change the world but no one will give me the source code"