From 8a389c90e9db2d826077a5ace8cbc300aea0d8d7 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 15 Dec 2016 16:30:15 +1000 Subject: [PATCH] filter: fix comment on how we calculate the slow-motion incline Signed-off-by: Peter Hutterer --- src/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filter.c b/src/filter.c index 83dcb35b..4b15c307 100644 --- a/src/filter.c +++ b/src/filter.c @@ -624,7 +624,7 @@ pointer_accel_profile_linear(struct motion_filter *filter, for speeds up to 0.07 u/ms, we decelerate, down to 30% of input speed. hence 1 = a * 0.07 + 0.3 - 0.3 = a * 0.00 + 0.3 => a := 10 + 0.7 = a * 0.07 => a := 10 deceleration function is thus: y = 10x + 0.3