How do I change the direction where the servo motors are going with a joystick?

For the second map try map( 0, 1023, 180, 0 )