Help with coding please - Arduino+AdaMotorshield+joystick

int analogPin = A0; // X potentiometer wiper (middle terminal)
int analogPin = A5; // Y potentiometer wiper (middle terminal)

You have at least a redefinition error of 'int analogPin'.

Let us know what the Status Bar/Program notification area shows.