joyVal = map(joyVal, 0, 180, 0, 1023); //servo value between 180-0
Correct this mapping is backwards beacuse when the joystick is not in use the servo goes to 180 degrees which i its home/rest position.
Also, i don't know what the analog values are for the home positions on my joystick?