Help with coding please - Arduino+AdaMotorshield+joystick

Thanks again i really appreaciate any help as i'm going
nuts, not being able to find a solution, as i know other people
had done it before, or at least pretty similar projects with the
same purpose. I'm not sure if the motorshield make the coding
easyer or if it just makes things more difficult to understand?

Answer to the last comment:
It helped on the errorcode to rename the analog Pin - i renamed to
Analog PinX and Analog PinY.

I have uploadet the code to the arduino, but the motors act strange.
No matter which way i move the joystick X or Y i get reaction on
both motors, but only a slight turn and a lot of humble, with or without
touching the stick.

I'm trying to understand whats going on rather than just make it work.

Would it help you guys to see a schematic of how this project is wired up?

Thanks / Jakob