
Re: Can't get this to work
One of the main problems you might be having is that joysticks don't always settle back to (0, 0) when they're released. Every controller is slightly different, the springs are slightly more worn in some places than others. You usually can't count on joystick values under 10 being very reliable (unless you're holding the stick yourself). Also, your code uses while loops, which I'm pretty sure are not what you want.
Try this code (leave your #pragmas alone, I'm just doing task main()):
You said the motor was "too powerful." I assume it was moving too quickly. Be mindful that reducing the number you send to a motor reduces both its speed and its power. I'd suggest using gear ratios to increase the torque and decrease the speed at which the arm rotates.