Hello Community,

I am interfacing funduino joystick shield with Arduino Leonardo

I am trying to impose PWM logic over the joystick data

If I set the constant to 5 it should increase the sensitivity linearly, if I set it to the values < 5 or > 5 it should increase exponentially

In the graph I attached below, I want the values of Ry (Y value at the magnitude of 5 with R = 0.3), By (Y value at the magnitude of 5 with R = 0.7) and Gy (Y value at the magnitude of 5 with R = 0.5) at the magnitude % of 5

X axis has the magnitude in range of 0-10 and Y-axis has the time interval in range of 0-100

I tried using the map function of the arduino

AND also tried plotting using the parabolic equations

but hard luck!!!