Apply Constant Voltage with Switch

stevekap25:
"if the joystick is pushed in positive y then positive voltage is applied and if joystick is pushed in negative y then negative voltage is applied an the joystick retracts."

The code shows you just turning an output high and low. How is your actuator driven from this, and what sort of actuator is it?