natural legacy algorithm was correct, leave as it was

This commit is contained in:
Jacob Palecki 2021-04-06 23:34:13 -07:00
parent 258fcd3bd2
commit c06d88e602

View file

@ -28,7 +28,7 @@ namespace rawaccel {
double offset_x = x - offset;
double decay = exp(-accel * offset_x);
return limit * (1 - (decay)) + 1;
return limit * (1 - (decay * offset_x + offset) / x) + 1;
}
using natural_base::natural_base;