With that said, ideally, we want the actuators to be enabled and extend when pressed either up or down (throttle or brake) and retracted whenever the joystick is placed back into its natural, neutral position.
Code for simple "button" (or switch) operation.
//zoomkat servo button test 7-30-2011
int button1 = 4; //button pin, connect to ground to move servo
int press1 = 0;
digitalWrite(4, HIGH); //enable pullups to make pin high
press1 = digitalRead(button1);
if (press1 == LOW)