Help with coding please - Arduino+AdaMotorshield+joystick

Seeing the schematic is useful, yes.

Also if you post code please // use the code tags (# button) so that its easy to read