The following code will scale down your joystick sensitivity:
if your original code was
change it to:
Code:
pwm01 = ( ((signed int)p1_y) - 127 ) / 2 + 127;
Change pwm01 and/or p1_y according to which PWM output and joystick you are using. You can change the scaling factor by changing the 2 (right now it's set to 1/2). For example, to set it at 1/3 power, change the 2 to a three. If you want to use a fraction like 2/3, change / 2 to * 2 / 3. Note: use fractions this way and not decimals, as it will make your code run faster because it only does integer math.
Hope that wasn't too confusing,
--Ryan
Edit: That's for MPLAB. If you're using EasyC, I'm not sure if I can help as much.