From c06d88e602983b650d4a61b8fb248be3e15d822b Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Tue, 6 Apr 2021 23:34:13 -0700 Subject: natural legacy algorithm was correct, leave as it was --- common/accel-natural.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/accel-natural.hpp b/common/accel-natural.hpp index 1f18e0d..28e17c2 100644 --- a/common/accel-natural.hpp +++ b/common/accel-natural.hpp @@ -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; -- cgit v1.2.3