
I am a relatively new programmer on a second year team. I was wondering if anyone knows if it is possible to program a window motor using the joystick buttons. What our team would like to do is to program our joystick so that when we press one button, the arm motor goes forward. When we press another button, we want the motor to go back. I do not know how to translate the relay outputs to a pwm output which would make the motor move. I tried writing an if statement that makes the pwm produce an output if a button is pressed, however nothing happens. I have performed countless searches for this information. The only threads I found talked about operating pnuematics using the joystick buttons, not motors. I do not know how to wire or program the relays so as to get a pwm output. I would appreciate any help. Thanks.
Lead Programmer, Team 1474