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"
|