Always show us your 'current' compete sketch.
And your COMPLETE sketch, too.
We can't see what actuatorPosition() does. I'm going to guess, though, that it does NOT call analogRead() to read the joystick position, and that that is the problem. So, fix it. It isn't rocket surgery.