This is my code to control the tourelle pan tilt ( 2 servos ) with an ky-023 joystick on arduino. You can use the c++ code and watch the fritzing file or the picture for pinout ...